Returns an array containing node IDs (integers) for all nodes on a flexible body, which reside inside the volume of the geometry object, geom. geom must be either a spherical ellipsoid or a cylinder.
Format
node_ids_in_volume (flex_body, geom)
Arguments
flex_body | Name of the flexible body object. |
geom | Name of the geometry object. The geometry object must be either a cylinder or a spherical ellipsoid (that is, xscale==yscale==zscale). |
Returns
If NODE_IDS_IN_VOLUME finds no nodes, it returns a single integer value of -1 with no warning.
Example
The following example assigns the value of -1 to variable .nodes because none of the nodes of the flexible body, link, are contained in the geometric object, sphere, as shown in the figure below.
var set var=.nodes int=(eval(node_ids_in_volume(link, sphere)))