|
MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHcBox.h>


Public Member Functions | |
| ChBox (Vector &mpos, ChMatrix33<> &mrot, Vector &msize) | |
| ChBox (Vector &mC0, Vector &mC1, Vector &mC2, Vector &mC3) | |
| ChBox (ChBox &source) | |
| void | Copy (ChBox *source) |
| ChGeometry * | Duplicate () |
| virtual int | GetClassType () |
| virtual void | GetBoundingBox (double &xmin, double &xmax, double &ymin, double &ymax, double &zmin, double &zmax, ChMatrix33<> *bbRot=NULL) |
| virtual Vector | Baricenter () |
| virtual void | CovarianceMatrix (ChMatrix33<> &C) |
| virtual void | Evaluate (Vector &pos, const double parU, const double parV=0., const double parW=0.) |
| virtual int | GetManifoldDimension () |
| ChMatrix33 * | GetRotm () |
| Vector & | GetPos () |
| Vector & | GetSize () |
| Vector | GetP1 () |
| Vector | GetP2 () |
| Vector | GetP3 () |
| Vector | GetP4 () |
| Vector | GetP5 () |
| Vector | GetP6 () |
| Vector | GetP7 () |
| Vector | GetP8 () |
| Vector | GetPn (int ipoint) |
| double | GetVolume () |
| void | StreamOUT (ChStreamOutBinary &mstream) |
| void | StreamIN (ChStreamInBinary &mstream) |
Public Attributes | |
| ChMatrix33 | Rot |
| Vector | Pos |
| Vector | Size |
| chrono::geometry::ChBox::ChBox | ( | Vector & | mpos, | |
| ChMatrix33<> & | mrot, | |||
| Vector & | msize | |||
| ) |
Build from pos, rotation, size.
Build from first corner and three other neighbouring corners.
| virtual int chrono::geometry::ChBox::GetClassType | ( | ) | [virtual] |
Get the class type as unique numerical ID (faster than using ChronoRTTI mechanism). Each inherited class must return an unique ID.
Reimplemented from chrono::geometry::ChGeometry.
| void chrono::geometry::ChBox::GetBoundingBox | ( | double & | xmin, | |
| double & | xmax, | |||
| double & | ymin, | |||
| double & | ymax, | |||
| double & | zmin, | |||
| double & | zmax, | |||
| ChMatrix33<> * | Rot = NULL | |||
| ) | [virtual] |
Compute bounding box. If a matrix Rot is not null, it should compute bounding box along the rotated directions represented by that transformation matrix Rot. It must be overridden by inherited classes.
Reimplemented from chrono::geometry::ChGeometry.
| virtual Vector chrono::geometry::ChBox::Baricenter | ( | ) | [virtual] |
| void chrono::geometry::ChBox::CovarianceMatrix | ( | ChMatrix33<> & | C | ) | [virtual] |
| void chrono::geometry::ChBox::Evaluate | ( | Vector & | pos, | |
| const double | parU, | |||
| const double | parV = 0., |
|||
| const double | parW = 0. | |||
| ) | [virtual] |
| virtual int chrono::geometry::ChBox::GetManifoldDimension | ( | ) | [virtual] |
| Vector chrono::geometry::ChBox::GetPn | ( | int | ipoint | ) |
Get the n-th corner point, with ipoint = 1...8.
| double chrono::geometry::ChBox::GetVolume | ( | ) |
Get the volume (assuming no scaling in Rot matrix).
Rotation of box.
Position of center.
Hemi size (extension of box from center to corner).
CHRONO::ENGINE