Public Member Functions | Protected Attributes

btPolyhedralConvexShape Class Reference

The btPolyhedralConvexShape is an internal interface class for polyhedral convex shapes. More...

#include <btPolyhedralConvexShape.h>

Inheritance diagram for btPolyhedralConvexShape:
Inheritance graph
[legend]
Collaboration diagram for btPolyhedralConvexShape:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 btPolyhedralConvexShape ()
virtual ~btPolyhedralConvexShape ()
virtual bool initializePolyhedralFeatures (int shiftVerticesByMargin=0)
 optional method mainly used to generate multiple contact points by clipping polyhedral features (faces/edges) experimental/work-in-progress
const btConvexPolyhedrongetConvexPolyhedron () const
virtual btVector3 localGetSupportingVertexWithoutMargin (const btVector3 &vec) const
virtual void batchedUnitVectorGetSupportingVertexWithoutMargin (const btVector3 *vectors, btVector3 *supportVerticesOut, int numVectors) const
virtual void calculateLocalInertia (btScalar mass, btVector3 &inertia) const
virtual int getNumVertices () const =0
virtual int getNumEdges () const =0
virtual void getEdge (int i, btVector3 &pa, btVector3 &pb) const =0
virtual void getVertex (int i, btVector3 &vtx) const =0
virtual int getNumPlanes () const =0
virtual void getPlane (btVector3 &planeNormal, btVector3 &planeSupport, int i) const =0
virtual bool isInside (const btVector3 &pt, btScalar tolerance) const =0

Protected Attributes

btConvexPolyhedronm_polyhedron

Detailed Description

The btPolyhedralConvexShape is an internal interface class for polyhedral convex shapes.

Definition at line 25 of file btPolyhedralConvexShape.h.


Constructor & Destructor Documentation

btPolyhedralConvexShape::btPolyhedralConvexShape (  ) 

Definition at line 24 of file btPolyhedralConvexShape.cpp.

btPolyhedralConvexShape::~btPolyhedralConvexShape (  )  [virtual]

Definition at line 30 of file btPolyhedralConvexShape.cpp.


Member Function Documentation

void btPolyhedralConvexShape::batchedUnitVectorGetSupportingVertexWithoutMargin ( const btVector3 vectors,
btVector3 supportVerticesOut,
int  numVectors 
) const [virtual]
btPolyhedralConvexShape::BT_DECLARE_ALIGNED_ALLOCATOR (  ) 
void btPolyhedralConvexShape::calculateLocalInertia ( btScalar  mass,
btVector3 inertia 
) const [virtual]

Implements btCollisionShape.

Reimplemented in btBox2dShape, btBoxShape, and btTriangleShape.

Definition at line 401 of file btPolyhedralConvexShape.cpp.

const btConvexPolyhedron* btPolyhedralConvexShape::getConvexPolyhedron (  )  const [inline]

Definition at line 46 of file btPolyhedralConvexShape.h.

virtual void btPolyhedralConvexShape::getEdge ( int  i,
btVector3 pa,
btVector3 pb 
) const [pure virtual]
virtual int btPolyhedralConvexShape::getNumEdges (  )  const [pure virtual]
virtual int btPolyhedralConvexShape::getNumPlanes (  )  const [pure virtual]
virtual int btPolyhedralConvexShape::getNumVertices (  )  const [pure virtual]
virtual void btPolyhedralConvexShape::getPlane ( btVector3 planeNormal,
btVector3 planeSupport,
int  i 
) const [pure virtual]
virtual void btPolyhedralConvexShape::getVertex ( int  i,
btVector3 vtx 
) const [pure virtual]
bool btPolyhedralConvexShape::initializePolyhedralFeatures ( int  shiftVerticesByMargin = 0  )  [virtual]

optional method mainly used to generate multiple contact points by clipping polyhedral features (faces/edges) experimental/work-in-progress

Definition at line 40 of file btPolyhedralConvexShape.cpp.

virtual bool btPolyhedralConvexShape::isInside ( const btVector3 pt,
btScalar  tolerance 
) const [pure virtual]
btVector3 btPolyhedralConvexShape::localGetSupportingVertexWithoutMargin ( const btVector3 vec  )  const [virtual]

Member Data Documentation

Definition at line 31 of file btPolyhedralConvexShape.h.


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