Class SpaceFilter#

Defined in Program listing for file mechanics/src/collision/native/SpaceFilter.hpp

class SpaceFilter : public InteractionManager, public std::enable_shared_from_this<SpaceFilter>#

Subclassed by OccSpaceFilter

Public Functions

void insert(SP::Disk, int, int, int)#

2D/3D objects insertion

void insert(SP::Hashed)#

general hashed object

inline unsigned int bboxfactor()#

get parameters

bool haveNeighbours(SP::Hashed h)#

get the neighbours

Just test the presence of neighbours.

Parameters:

h – hashed component of a body.

double minDistance(SP::Hashed h)#

Give the minimal distance.

Parameters:

h – hashed component of a body.

void updateInteractions(SP::Simulation simulation) override#

Broadphase contact detection: add interactions in indexSet 0.

Parameters:

simulation – the current simulation setup

inline virtual ~SpaceFilter()#

Destructor.