Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes | Private Attributes
LocalSupportVertexCallback Class Reference

It's not nice to have all this virtual function overhead, so perhaps we can also gather the points once but then we are duplicating. More...

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

List of all members.

Public Member Functions

 LocalSupportVertexCallback (const btVector3 &supportVecLocal)
virtual void internalProcessTriangleIndex (btVector3 *triangle, int partId, int triangleIndex)
btVector3 GetSupportVertexLocal ()

Public Attributes

btScalar m_maxDot
btVector3 m_supportVecLocal

Private Attributes

btVector3 m_supportVertexLocal

Detailed Description

It's not nice to have all this virtual function overhead, so perhaps we can also gather the points once but then we are duplicating.

Definition at line 33 of file btConvexTriangleMeshShape.cpp.


Constructor & Destructor Documentation

Definition at line 42 of file btConvexTriangleMeshShape.cpp.

              : m_supportVertexLocal(btScalar(0.),btScalar(0.),btScalar(0.)),
              m_maxDot(btScalar(-1e30)),
                m_supportVecLocal(supportVecLocal)
       {
       }

Member Function Documentation

Definition at line 65 of file btConvexTriangleMeshShape.cpp.

       {
              return m_supportVertexLocal;
       }

Here is the caller graph for this function:

virtual void LocalSupportVertexCallback::internalProcessTriangleIndex ( btVector3 triangle,
int  partId,
int  triangleIndex 
) [inline, virtual]

Implements btInternalTriangleIndexCallback.

Definition at line 49 of file btConvexTriangleMeshShape.cpp.

       {
              (void)triangleIndex;
              (void)partId;

              for (int i=0;i<3;i++)
              {
                     btScalar dot = m_supportVecLocal.dot(triangle[i]);
                     if (dot > m_maxDot)
                     {
                            m_maxDot = dot;
                            m_supportVertexLocal = triangle[i];
                     }
              }
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 39 of file btConvexTriangleMeshShape.cpp.

Definition at line 40 of file btConvexTriangleMeshShape.cpp.

Definition at line 36 of file btConvexTriangleMeshShape.cpp.


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