chrono::geometry::ChVolume Class Referenceabstract

Description

Base class for all geometric objects representing tri-parametric surfaces in 3D space.

This is the base for all U,V,W-parametric object, implementing Evaluate() that returns a point as a function of three U,V,W parameters.

#include <ChVolume.h>

Inheritance diagram for chrono::geometry::ChVolume:
Collaboration diagram for chrono::geometry::ChVolume:

Public Member Functions

 ChVolume (const ChVolume &source)
 
virtual double GetVolume () const =0
 "Virtual" copy constructor (covariant return type). More...
 
virtual ChMatrix33 GetGyration () const =0
 Return the gyration matrix for this solid.
 
virtual ChVector Evaluate (double parU, double parV, double parW) const
 Return a point in the volume, given parametric coordinates U,V,W. More...
 
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.
 
virtual int GetManifoldDimension () const override final
 This is a volume.
 
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::ChGeometry
 ChGeometry (const ChGeometry &source)
 
virtual ChGeometryClone () const =0
 "Virtual" copy constructor.
 
virtual Type GetClassType () const
 Get the class type as an enum.
 
virtual ChAABB GetBoundingBox () const
 Compute bounding box along the directions of the shape definition frame. More...
 
void InflateBoundingBox (ChAABB &bbox) 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 ChVector Baricenter () const
 Compute center of mass.
 
virtual void Update ()
 Generic update of internal data.
 

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.
 

Member Function Documentation

◆ Evaluate()

virtual ChVector chrono::geometry::ChVolume::Evaluate ( double  parU,
double  parV,
double  parW 
) const
inlinevirtual

Return a point in the volume, given parametric coordinates U,V,W.

Parameters U V W always work in 0..1 range. The default implementation always returns the volume center.

Reimplemented in chrono::geometry::ChEllipsoid, chrono::geometry::ChRoundedBox, chrono::geometry::ChBox, chrono::geometry::ChSphere, chrono::geometry::ChCapsule, chrono::geometry::ChCone, chrono::geometry::ChCylinder, and chrono::geometry::ChRoundedCylinder.

◆ GetVolume()

virtual double chrono::geometry::ChVolume::GetVolume ( ) const
pure virtual

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