siconos.mechanics.collision.native.SpaceFilter (Python class)

class siconos.mechanics.collision.native.SpaceFilter(*args)[source]

Bases: siconos.kernel.InteractionManager

Constructors

SpaceFilter(int bboxfactor, int cellsize, array_like (np.float64, 2D) plans, FMatrix moving_plans)
SpaceFilter(int bboxfactor, int cellsize, array_like (np.float64, 2D) plans)
SpaceFilter()
bboxfactor() → int[source]

get parameters

cellsize() → int[source]
haveNeighbours(Hashed h) → bool[source]

get the neighbours

Just test the presence of neighbours.

Parameters:h – hashed component of a body.
insert(*args)[source]

Warning - Overloaded function : multiple signatures available, check prototypes below.

insert(Disk, int, int, int) → None[source]

2D/3D objects insertion

insert(Circle, int, int, int) → None[source]
insert(SphereLDS, int, int, int) → None[source]
insert(SphereNEDS, int, int, int) → None[source]
insert(Hashed) → None[source]

general hashed object

minDistance(Hashed h) → double[source]

Give the minimal distance.

Parameters:h – hashed component of a body.
updateInteractions(Simulation simulation) → None[source]

Broadphase contact detection: add interactions in indexSet 0.

Parameters:simulation – the current simulation setup