In order to be able to use this module import it like this:
import mpacts.commands.geometry.aabbgenerator #or assign it to a shorter name import mpacts.commands.geometry.aabbgenerator as aab
- Command that generates a list of bounding boxes for known geometries.Default location: ‘loop_cmds/pre_contact_cmds’
- Required keywords:
pc— Particle container on which the command is applied
- Optional keywords:
gate(default value = ET::ChildProperty const*) — Can decide to (temporarily) not execute the command in a CommandList. (Default is ExecuteAlways)
margin(default value = 0) — Adds an additional (fixed size) margin to the bounding box. Useful to give planes a third dimension, or to provide margin, so the contacts don’t need to be detected every timestep
predicate(default value = None) — Predicate that will decide whether this command is executed for a specific particle, when absent the command is executed for every particle.
- object __init__(tuple args, dict kwds) :
- args: name, parent kwds: pc, [gate, predicate, margin]
AABBGeneratorCommand(name, parent, **kwargs)¶
max_size((AABBGeneratorCommand)arg1) → float :¶
Returns the largest dimension of the largest bounding box.
min_size((AABBGeneratorCommand)arg1) → float :¶
Returns the smallest dimension of the smallest bounding box.