chrono::geometry::ChSurface Class Referenceabstract

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::geometry::ChSurface:
Collaboration diagram for chrono::geometry::ChSurface:

Public Member Functions

 ChSurface (const ChSurface &source)
 
virtual void Evaluate (ChVector<> &pos, const double parU, const double parV) const =0
 "Virtual" copy constructor (covariant return type). More...
 
virtual void Normal (ChVector<> &dir, const double parU, const double parV) const
 Evaluates a normal versor, given parametric coordinates U,V. More...
 
virtual bool Get_closed_U () const
 Tell if the surface is closed (periodic) on U.
 
virtual bool Get_closed_V () const
 Tell if the surface is closed (periodic) on V.
 
virtual int GetManifoldDimension () const override
 This is a surface, so manifold dimension=2.
 
bool IsWireframe ()
 Tell if the visualization is done only as UV isolines.
 
void SetWireframe (bool mw)
 Set if the visualization is done only as UV isolines.
 
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 GeometryType GetClassType () const
 Get the class type as unique numerical ID (faster than using ChronoRTTI mechanism). More...
 
virtual void GetBoundingBox (ChVector<> &cmin, ChVector<> &cmax, const ChMatrix33<> &rot) const
 Compute bounding box along the directions defined by the given rotation matrix. More...
 
void InflateBoundingBox (ChVector<> &cmin, ChVector<> &cmax, 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 ChVector 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::geometry::ChGeometry
enum  GeometryType {
  NONE, SPHERE, BOX, CYLINDER,
  TRIANGLE, CAPSULE, CONE, LINE,
  LINE_ARC, LINE_BEZIER, LINE_CAM, LINE_PATH,
  LINE_POLY, LINE_SEGMENT, ROUNDED_BOX, ROUNDED_CYLINDER,
  ROUNDED_CONE, TRIANGLEMESH, TRIANGLEMESH_CONNECTED, TRIANGLEMESH_SOUP
}
 Enumeration of geometric objects.
 

Member Function Documentation

◆ Evaluate()

virtual void chrono::geometry::ChSurface::Evaluate ( ChVector<> &  pos,
const double  parU,
const double  parV 
) const
pure virtual

"Virtual" copy constructor (covariant return type).

Evaluates a point on the surface, given parametric coordinates U,V. Parameters U and V always work in 0..1 range. Computed value goes into the 'pos' reference. It must be implemented by inherited classes.

Implemented in chrono::geometry::ChSurfaceNurbs.

◆ Normal()

void chrono::geometry::ChSurface::Normal ( ChVector<> &  dir,
const double  parU,
const double  parV 
) const
virtual

Evaluates a normal versor, given parametric coordinates U,V.

Parameters U,V always work in 0..1 range. Computed value (normalized) goes into the 'pos' reference. It could be overridden by inherited classes if a precise solution is known (otherwise it defaults to numerical BDF using the Evaluate() function).


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