Project Chrono: chrono::utils::ChGenerator::CreateObjectsCallback Class Reference

Public Member Functions | List of all members
chrono::utils::ChGenerator::CreateObjectsCallback Class Referenceabstract

## Description

Class to be used as a callback interface for user-defined filtering of initial positions.

`#include <ChUtilsGenerators.h>`

## Public Member Functions
virtual void | OnCreateObjects (const PointVectorD &points, std::vector< bool > &flags)=0
| Callback used to process the initial position points generated by the underlying sampler.

## Member Function Documentation

## ◆ OnCreateObjects()

virtual void chrono::utils::ChGenerator::CreateObjectsCallback::OnCreateObjects | ( | const PointVectorD & | points,
|  | std::vector< bool > & | flags )
| pure virtual

Callback used to process the initial position points generated by the underlying sampler.

The provided vector of boolean flags is set to all 'true'. Set the i-th entry to 'false' if a body should not be created at the i-th position.

Parameters

  points | vector of positions generated by the sampler
  flags | change to 'false' for positions where a body should not be generated

The documentation for this class was generated from the following file:

- D:/W/B/src/chrono-9.0.1/src/chrono/utils/ChUtilsGenerators.h