inline a piece of code
This commit is contained in:
@@ -109,16 +109,10 @@ public:
|
|||||||
void Construct(void* memory, const b3Array<b3Vec3>& vertices);
|
void Construct(void* memory, const b3Array<b3Vec3>& vertices);
|
||||||
|
|
||||||
// Get the list of faces in this hull.
|
// Get the list of faces in this hull.
|
||||||
const qhList<qhFace>& GetFaceList() const
|
const qhList<qhFace>& GetFaceList() const;
|
||||||
{
|
|
||||||
return m_faceList;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get the number of iterations this algorithm ran.
|
// Get the number of iterations this algorithm ran.
|
||||||
u32 GetIterations() const
|
u32 GetIterations() const;
|
||||||
{
|
|
||||||
return m_iteration;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Validate this hull.
|
// Validate this hull.
|
||||||
void Validate() const;
|
void Validate() const;
|
||||||
@@ -154,7 +148,7 @@ private:
|
|||||||
float32 m_tolerance;
|
float32 m_tolerance;
|
||||||
|
|
||||||
// List of faces
|
// List of faces
|
||||||
qhList<qhFace> m_faceList; // list of faces
|
qhList<qhFace> m_faceList;
|
||||||
|
|
||||||
// Number of Quickhull iterations
|
// Number of Quickhull iterations
|
||||||
u32 m_iteration;
|
u32 m_iteration;
|
||||||
@@ -172,7 +166,6 @@ private:
|
|||||||
qhVertex* m_freeVertices;
|
qhVertex* m_freeVertices;
|
||||||
qhHalfEdge* m_freeEdges;
|
qhHalfEdge* m_freeEdges;
|
||||||
qhFace* m_freeFaces;
|
qhFace* m_freeFaces;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <bounce/quickhull/qh_hull.inl>
|
#include <bounce/quickhull/qh_hull.inl>
|
||||||
|
@@ -149,6 +149,16 @@ inline u32 qhGetMemorySize(u32 V)
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline const qhList<qhFace>& qhHull::GetFaceList() const
|
||||||
|
{
|
||||||
|
return m_faceList;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline u32 qhHull::GetIterations() const
|
||||||
|
{
|
||||||
|
return m_iteration;
|
||||||
|
}
|
||||||
|
|
||||||
inline qhVertex* qhHull::AllocateVertex()
|
inline qhVertex* qhHull::AllocateVertex()
|
||||||
{
|
{
|
||||||
qhVertex* v = m_freeVertices;
|
qhVertex* v = m_freeVertices;
|
||||||
|
Reference in New Issue
Block a user