Changeset 2430 for code/branches/physics/src/bullet/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h
- Timestamp:
- Dec 13, 2008, 11:45:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/BulletCollision/NarrowPhaseCollision/btVoronoiSimplexSolver.h
r2192 r2430 51 51 struct btSubSimplexClosestResult 52 52 { 53 bt Point3 m_closestPointOnSimplex;53 btVector3 m_closestPointOnSimplex; 54 54 //MASK for m_usedVertices 55 55 //stores the simplex vertex-usage, using the MASK, … … 98 98 99 99 btVector3 m_simplexVectorW[VORONOI_SIMPLEX_MAX_VERTS]; 100 bt Point3 m_simplexPointsP[VORONOI_SIMPLEX_MAX_VERTS];101 bt Point3 m_simplexPointsQ[VORONOI_SIMPLEX_MAX_VERTS];100 btVector3 m_simplexPointsP[VORONOI_SIMPLEX_MAX_VERTS]; 101 btVector3 m_simplexPointsQ[VORONOI_SIMPLEX_MAX_VERTS]; 102 102 103 103 104 104 105 bt Point3 m_cachedP1;106 bt Point3 m_cachedP2;105 btVector3 m_cachedP1; 106 btVector3 m_cachedP2; 107 107 btVector3 m_cachedV; 108 108 btVector3 m_lastW; … … 117 117 bool updateClosestVectorAndPoints(); 118 118 119 bool closestPtPointTetrahedron(const bt Point3& p, const btPoint3& a, const btPoint3& b, const btPoint3& c, const btPoint3& d, btSubSimplexClosestResult& finalResult);120 int pointOutsideOfPlane(const bt Point3& p, const btPoint3& a, const btPoint3& b, const btPoint3& c, const btPoint3& d);121 bool closestPtPointTriangle(const bt Point3& p, const btPoint3& a, const btPoint3& b, const btPoint3& c,btSubSimplexClosestResult& result);119 bool closestPtPointTetrahedron(const btVector3& p, const btVector3& a, const btVector3& b, const btVector3& c, const btVector3& d, btSubSimplexClosestResult& finalResult); 120 int pointOutsideOfPlane(const btVector3& p, const btVector3& a, const btVector3& b, const btVector3& c, const btVector3& d); 121 bool closestPtPointTriangle(const btVector3& p, const btVector3& a, const btVector3& b, const btVector3& c,btSubSimplexClosestResult& result); 122 122 123 123 public: … … 125 125 void reset(); 126 126 127 void addVertex(const btVector3& w, const bt Point3& p, const btPoint3& q);127 void addVertex(const btVector3& w, const btVector3& p, const btVector3& q); 128 128 129 129 … … 137 137 } 138 138 139 int getSimplex(bt Point3 *pBuf, btPoint3 *qBuf, btVector3 *yBuf) const;139 int getSimplex(btVector3 *pBuf, btVector3 *qBuf, btVector3 *yBuf) const; 140 140 141 141 bool inSimplex(const btVector3& w); … … 145 145 bool emptySimplex() const ; 146 146 147 void compute_points(bt Point3& p1, btPoint3& p2) ;147 void compute_points(btVector3& p1, btVector3& p2) ; 148 148 149 149 int numVertices() const
Note: See TracChangeset
for help on using the changeset viewer.