Cubit 15.4 User Documentation
Defines a body object that mostly parallels Cubit's Body class.
PyObservable
Entity
GeomEntity
Body
[ float ] | get_mass_props | Get the mass properties of the Body, specifically the center of gravity. |
int | point_containment | Get whether a point is in, on, or outside the Body. |
float | volume | Get the volume of the Body. |
Bool | is_sheet_body | Get whether the Body is a sheet body or not. |
props = body.get_mass_props()
A vector (or list) of numerical data corresponding to the center of gravity of the body with indices as follows: 0 - x coordinate 1 - y coordinate 2 - z coordinate
on_out_in = body.point_containment([0,0,0])
loc_in |
Whether a point is unknown (-1), outside (0), in (1), or on (2) the Body
vol = body.volume()
The volume of the Body
is_sheet = body.is_sheet_body()
Whether the Bodyis a sheet body or not