chrono::geometry::ChBox Class Reference

Description

A box geometric object for collisions and visualization.

#include <ChBox.h>

Inheritance diagram for chrono::geometry::ChBox:
Collaboration diagram for chrono::geometry::ChBox:

Public Member Functions

 ChBox (const ChVector<> &lengths)
 
 ChBox (double length_x, double length_y, double length_z)
 
 ChBox (const ChBox &source)
 
virtual ChBoxClone () const override
 "Virtual" copy constructor (covariant return type).
 
virtual Type GetClassType () const override
 Get the class type as an enum.
 
virtual AABB GetBoundingBox (const ChMatrix33<> &rot) const override
 Compute bounding box along the directions defined by the given rotation matrix.
 
virtual ChVector Baricenter () const override
 Compute the baricenter of the box.
 
virtual void Evaluate (ChVector<> &pos, const double parU, const double parV, const double parW) const override
 Evaluate position in cube volume.
 
virtual int GetManifoldDimension () const override
 This is a solid.
 
const ChVectorGetHalflengths () const
 Get the box half-lengths.
 
ChVector GetLengths () const
 Get the x, y, and z lengths of this box.
 
void SetLengths (const ChVector<> &lengths)
 Set the x, y, and z lengths of this box.
 
double GetVolume () const
 Get the volume (assuming no scaling in Rot matrix)
 
virtual void ArchiveOut (ChArchiveOut &marchive) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &marchive) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::geometry::ChVolume
 ChVolume (const ChVolume &source)
 
virtual bool Get_closed_U () const
 Tell if the volume is closed (periodic) in parametric coordinate.
 
virtual bool Get_closed_V () const
 Tell if the volume is closed (periodic) in parametric coordinate.
 
virtual bool Get_closed_W () const
 Tell if the volume is closed (periodic) in parametric coordinate.
 
- Public Member Functions inherited from chrono::geometry::ChGeometry
 ChGeometry (const ChGeometry &source)
 
void InflateBoundingBox (AABB &bbox, const ChMatrix33<> &rot) const
 Enlarge the given existing bounding box with the bounding box of this object.
 
virtual double GetBoundingSphereRadius () const
 Returns the radius of a bounding sphere for this geometry. More...
 
virtual void Update ()
 Generic update of internal data.
 

Public Attributes

ChVector hlen
 box halflengths
 

Additional Inherited Members

- Public Types inherited from chrono::geometry::ChGeometry
enum  Type {
  NONE, SPHERE, ELLIPSOID, BOX,
  CYLINDER, TRIANGLE, CAPSULE, CONE,
  LINE, LINE_ARC, LINE_BEZIER, LINE_CAM,
  LINE_PATH, LINE_POLY, LINE_SEGMENT, ROUNDED_BOX,
  ROUNDED_CYLINDER, TRIANGLEMESH, TRIANGLEMESH_CONNECTED, TRIANGLEMESH_SOUP
}
 Enumeration of geometric object types.
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/geometry/ChBox.h
  • /builds/uwsbel/chrono/src/chrono/geometry/ChBox.cpp