cgma
|
#include <BodySM.hpp>
Public Member Functions | |
BodySM () | |
virtual | ~BodySM () |
virtual CubitStatus | get_transforms (CubitTransformMatrix &tfm)=0 |
virtual CubitStatus | mass_properties (CubitVector ¢roid, double &volume)=0 |
virtual CubitPointContainment | point_containment (const CubitVector &pos, double tolerance=-1.0)=0 |
CubitBox | bounding_box () |
Definition at line 48 of file BodySM.hpp.
BodySM::BodySM | ( | ) |
Definition at line 51 of file BodySM.cpp.
{ }
BodySM::~BodySM | ( | ) | [virtual] |
Definition at line 64 of file BodySM.cpp.
{ }
Definition at line 68 of file BodySM.cpp.
{ DLIList<Lump*> body_lumps; this->lumps( body_lumps ); CubitBox bbox; bbox = body_lumps.get_and_step()->bounding_box(); int i; for( i=body_lumps.size()-1; i--; ) { Lump *tmp_lump = body_lumps.get_and_step(); bbox |= tmp_lump->bounding_box(); } return bbox; }
virtual CubitStatus BodySM::get_transforms | ( | CubitTransformMatrix & | tfm | ) | [pure virtual] |
Implemented in FacetBody, OCCBody, CompositeBody, and PartitionBody.
virtual CubitStatus BodySM::mass_properties | ( | CubitVector & | centroid, |
double & | volume | ||
) | [pure virtual] |
Implemented in FacetBody, OCCBody, CompositeBody, and PartitionBody.
virtual CubitPointContainment BodySM::point_containment | ( | const CubitVector & | pos, |
double | tolerance = -1.0 |
||
) | [pure virtual] |
Implemented in FacetBody, OCCBody, CompositeBody, and PartitionBody.