Description

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

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

#include <ChSurface.h>

Inheritance diagram for chrono::ChSurface:
Collaboration diagram for chrono::ChSurface:

Public Member Functions

 ChSurface (const ChSurface &other)
 
virtual ChVector3d Evaluate (double parU, double parV) const
 "Virtual" copy constructor (covariant return type). More...
 
virtual ChVector3d GetNormal (double parU, double parV) const
 Return the normal unit vector at the parametric coordinates (U,V). More...
 
virtual bool IsClosedU () const
 Return true if the surface is closed (periodic) in the 1st parametric coordinate.
 
virtual bool IslosedV () const
 Return true if the surface is closed (periodic) in the 2nd parametric coordinate.
 
virtual int GetManifoldDimension () const override final
 Return dimensionality of this object. More...
 
bool IsWireframe ()
 Return true if visualization is done only as UV isolines.
 
void SetWireframe (bool mw)
 Enable/disable visualization as wireframe.
 
virtual void ArchiveOut (ChArchiveOut &archive_out) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &archive_in) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::ChGeometry
 ChGeometry (const ChGeometry &other)
 
virtual ChGeometryClone () const =0
 "Virtual" copy constructor.
 
virtual Type GetType () 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 ChVector3d Baricenter () const
 Compute center of mass.
 
virtual void Update ()
 Generic update of internal data.
 

Protected Attributes

bool wireframe
 

Additional Inherited Members

- Public Types inherited from chrono::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 ChVector3d chrono::ChSurface::Evaluate ( double  parU,
double  parV 
) const
inlinevirtual

"Virtual" copy constructor (covariant return type).

Return a point on the surface, given parametric coordinates U,V. Parameters U and V are always in the [0,1] range. The default implementation always returns the origin of the surface frame.

Reimplemented in chrono::ChSurfaceNurbs.

◆ GetManifoldDimension()

virtual int chrono::ChSurface::GetManifoldDimension ( ) const
inlinefinaloverridevirtual

Return dimensionality of this object.

For a surface, this is always 2.

Reimplemented from chrono::ChGeometry.

◆ GetNormal()

ChVector3d chrono::ChSurface::GetNormal ( double  parU,
double  parV 
) const
virtual

Return the normal unit vector at the parametric coordinates (U,V).

Parameters U and V are always in the [0,1] range.


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