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. More...
 

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
pointsvector of positions generated by the sampler
flagschange to 'false' for positions where a body should not be generated

The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/utils/ChUtilsGenerators.h