TriangleMeshImpl Class Reference

#include <ContactGeometryImpl.h>

Inheritance diagram for TriangleMeshImpl:
ContactGeometryImpl

List of all members.

Classes

class  Edge
class  Face
class  Vertex

Public Member Functions

 TriangleMeshImpl (const ArrayViewConst_< Vec3 > &vertexPositions, const ArrayViewConst_< int > &faceIndices, bool smooth)
 TriangleMeshImpl (const PolygonalMesh &mesh, bool smooth)
ContactGeometryImplclone () const
ContactGeometryTypeId getTypeId () const
Vec3 findPoint (int face, const Vec2 &uv) const
Vec3 findCentroid (int face) const
UnitVec3 findNormalAtPoint (int face, const Vec2 &uv) const
Vec3 findNearestPoint (const Vec3 &position, bool &inside, UnitVec3 &normal) const
Vec3 findNearestPoint (const Vec3 &position, bool &inside, int &face, Vec2 &uv) const
Vec3 findNearestPointToFace (const Vec3 &position, int face, Vec2 &uv) const
bool intersectsRay (const Vec3 &origin, const UnitVec3 &direction, Real &distance, UnitVec3 &normal) const
bool intersectsRay (const Vec3 &origin, const UnitVec3 &direction, Real &distance, int &face, Vec2 &uv) const
void getBoundingSphere (Vec3 &center, Real &radius) const
void createPolygonalMesh (PolygonalMesh &mesh) const

Static Public Member Functions

static ContactGeometryTypeId classTypeId ()
static const std::string & Type ()

Friends

class ContactGeometry::TriangleMesh
class OBBTreeNodeImpl

Constructor & Destructor Documentation

TriangleMeshImpl ( const ArrayViewConst_< Vec3 > &  vertexPositions,
const ArrayViewConst_< int > &  faceIndices,
bool  smooth 
)

Referenced by TriangleMeshImpl::clone().

TriangleMeshImpl ( const PolygonalMesh mesh,
bool  smooth 
)

Member Function Documentation

static ContactGeometryTypeId classTypeId (  )  [inline, static]
ContactGeometryImpl* clone (  )  const [inline, virtual]
void createPolygonalMesh ( PolygonalMesh mesh  )  const
Vec3 findCentroid ( int  face  )  const
Vec3 findNearestPoint ( const Vec3 position,
bool &  inside,
int &  face,
Vec2 uv 
) const
Vec3 findNearestPoint ( const Vec3 position,
bool &  inside,
UnitVec3 normal 
) const [virtual]

Implements ContactGeometryImpl.

Vec3 findNearestPointToFace ( const Vec3 position,
int  face,
Vec2 uv 
) const
UnitVec3 findNormalAtPoint ( int  face,
const Vec2 uv 
) const
Vec3 findPoint ( int  face,
const Vec2 uv 
) const
void getBoundingSphere ( Vec3 center,
Real &  radius 
) const [virtual]

Implements ContactGeometryImpl.

ContactGeometryTypeId getTypeId (  )  const [inline, virtual]
bool intersectsRay ( const Vec3 origin,
const UnitVec3 direction,
Real &  distance,
int &  face,
Vec2 uv 
) const
bool intersectsRay ( const Vec3 origin,
const UnitVec3 direction,
Real &  distance,
UnitVec3 normal 
) const [virtual]

Implements ContactGeometryImpl.

static const std::string& Type (  )  [inline, static]

Friends And Related Function Documentation

friend class ContactGeometry::TriangleMesh [friend]
friend class OBBTreeNodeImpl [friend]

The documentation for this class was generated from the following file:

Generated on Thu Aug 12 16:37:59 2010 for SimTKcore by  doxygen 1.6.1