Body Class Reference
Defines a body object that mostly parallels Cubit's Body class.
Inheritance
EntityGeomEntity
Body Volume Surface Curve Vertex
Public Member Functions
std::array< double, 3 >
get_mass_props()
Get the mass properties of the Body, specifically the center of gravity.
int
point_containment( std::array< double, 3 > loc_in)
Get whether a point is in, on, or outside the Body.
bool
is_sheet_body()
Get whether the Body is a sheet body or not.
Body()
Body( const Body & other)
~Body()
Body( CubitEntity * entity_ptr)
Detailed Description
Defines a body object that mostly parallels Cubit's Body class.
Member Function Documentation
std::array< double, 3 > get_mass_props()
Returns 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
0 - x coordinate
1 - y coordinate
2 - z coordinate
bool is_sheet_body()
Returns Whether the Body is a sheet body or not
int point_containment(
- std::array< double, 3 > loc_in)
Returns Whether a point is unknown (-1), outside (0), in (1), or on (2) the Body
double volume()
Returns The volume of the Body