inline a piece of code

This commit is contained in:
Irlan 2018-04-20 03:11:18 -03:00
parent f7364b70a6
commit c413f4d8aa
2 changed files with 14 additions and 11 deletions

View File

@ -109,16 +109,10 @@ public:
void Construct(void* memory, const b3Array<b3Vec3>& vertices);
// Get the list of faces in this hull.
const qhList<qhFace>& GetFaceList() const
{
return m_faceList;
}
const qhList<qhFace>& GetFaceList() const;
// Get the number of iterations this algorithm ran.
u32 GetIterations() const
{
return m_iteration;
}
u32 GetIterations() const;
// Validate this hull.
void Validate() const;
@ -154,7 +148,7 @@ private:
float32 m_tolerance;
// List of faces
qhList<qhFace> m_faceList; // list of faces
qhList<qhFace> m_faceList;
// Number of Quickhull iterations
u32 m_iteration;
@ -172,7 +166,6 @@ private:
qhVertex* m_freeVertices;
qhHalfEdge* m_freeEdges;
qhFace* m_freeFaces;
};
#include <bounce/quickhull/qh_hull.inl>

View File

@ -149,6 +149,16 @@ inline u32 qhGetMemorySize(u32 V)
return size;
}
inline const qhList<qhFace>& qhHull::GetFaceList() const
{
return m_faceList;
}
inline u32 qhHull::GetIterations() const
{
return m_iteration;
}
inline qhVertex* qhHull::AllocateVertex()
{
qhVertex* v = m_freeVertices;