From c413f4d8aa4e71744dcfbe0f72548d41128cb886 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Fri, 20 Apr 2018 03:11:18 -0300 Subject: [PATCH] inline a piece of code --- include/bounce/quickhull/qh_hull.h | 15 ++++----------- include/bounce/quickhull/qh_hull.inl | 10 ++++++++++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/include/bounce/quickhull/qh_hull.h b/include/bounce/quickhull/qh_hull.h index 50da172..6b51010 100644 --- a/include/bounce/quickhull/qh_hull.h +++ b/include/bounce/quickhull/qh_hull.h @@ -109,16 +109,10 @@ public: void Construct(void* memory, const b3Array& vertices); // Get the list of faces in this hull. - const qhList& GetFaceList() const - { - return m_faceList; - } - + const qhList& 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 m_faceList; // list of faces + qhList m_faceList; // Number of Quickhull iterations u32 m_iteration; @@ -172,7 +166,6 @@ private: qhVertex* m_freeVertices; qhHalfEdge* m_freeEdges; qhFace* m_freeFaces; - }; #include diff --git a/include/bounce/quickhull/qh_hull.inl b/include/bounce/quickhull/qh_hull.inl index a06b581..6569aa7 100644 --- a/include/bounce/quickhull/qh_hull.inl +++ b/include/bounce/quickhull/qh_hull.inl @@ -149,6 +149,16 @@ inline u32 qhGetMemorySize(u32 V) return size; } +inline const qhList& qhHull::GetFaceList() const +{ + return m_faceList; +} + +inline u32 qhHull::GetIterations() const +{ + return m_iteration; +} + inline qhVertex* qhHull::AllocateVertex() { qhVertex* v = m_freeVertices;