ContactGeometry::TriangleMeshImpl Class Reference

#include <ContactGeometryImpl.h>

Inheritance diagram for ContactGeometry::TriangleMeshImpl:

ContactGeometryImpl

List of all members.

Public Member Functions

 TriangleMeshImpl (const std::vector< Vec3 > &vertexPositions, const std::vector< int > &faceIndices, bool smooth)
 TriangleMeshImpl (const PolygonalMesh &mesh, bool smooth)
ContactGeometryImplclone () 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

Static Public Member Functions

static const std::string & Type ()

Friends

class ContactGeometry::TriangleMesh
class OBBTreeNodeImpl

Classes

class  Edge
class  Face
class  Vertex


Constructor & Destructor Documentation

TriangleMeshImpl ( const std::vector< Vec3 > &  vertexPositions,
const std::vector< int > &  faceIndices,
bool  smooth 
)

TriangleMeshImpl ( const PolygonalMesh mesh,
bool  smooth 
)


Member Function Documentation

ContactGeometryImpl* clone (  )  const [inline, virtual]

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

UnitVec3 findNormalAtPoint ( int  face,
const Vec2 uv 
) const

Vec3 findNearestPoint ( const Vec3 position,
bool &  inside,
UnitVec3 normal 
) const [virtual]

Implements ContactGeometryImpl.

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 [virtual]

Implements ContactGeometryImpl.

bool intersectsRay ( const Vec3 origin,
const UnitVec3 direction,
Real &  distance,
int &  face,
Vec2 uv 
) const


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 Fri Sep 26 07:44:31 2008 for SimTKcore by  doxygen 1.5.6