rblock.inbox

Syntax

a = rblock.inbox(vl,vu<,b>)

Get rigid blocks with extents intersecting a box. The extent is the axis-aligned bounding box of the rblock. Specifying b = false indicates that only rigid blocks with positions falling in the box are returned.

Note

  • This function uses cell-space-based algorithms for efficient spatial searching, and therefore assumes that the rigid blocks are properly mapped into the cell space. Directly after the model has been restored, or after rigid blocks have been created, one must execute a model clean command prior to using this function.
Returns:

a - array of rigid blocks

Arguments:

vl - lower corner of the box

vu - upper corner of the box

b - optional intersection specifier