Class SpaceFilter

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

class SpaceFilter : public InteractionManager, public std11::enable_shared_from_this<SpaceFilter>

Public Functions

virtual ~SpaceFilter()

Destructor.

ACCEPT_STD_VISITORS()

visitor hook

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.

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

2D/3D objects insertion

void insert(SP::Hashed)

general hashed object

double minDistance(SP::Hashed h)

Give the minimal distance.

Parameters
  • h: hashed component of a body.

virtual void updateInteractions(SP::Simulation simulation)

Broadphase contact detection: add interactions in indexSet 0.

Parameters
  • simulation: the current simulation setup