From 1c15c3b5b46b84ac0f059bc51624c4ff3645c021 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Tue, 10 Jul 2018 12:06:00 -0300 Subject: [PATCH] removed convenience function --- include/bounce/quickhull/qh_hull.h | 4 ---- include/bounce/quickhull/qh_hull.inl | 21 --------------------- 2 files changed, 25 deletions(-) diff --git a/include/bounce/quickhull/qh_hull.h b/include/bounce/quickhull/qh_hull.h index f704c06..108f236 100644 --- a/include/bounce/quickhull/qh_hull.h +++ b/include/bounce/quickhull/qh_hull.h @@ -107,10 +107,6 @@ public: // Get the list of vertices in this convex hull. const qhList& GetVertexList() const; - // Get the list of half-edges in this convex hull. - // Return the number of edges. - u32 GetEdgeList(qhHalfEdge** edges, u32 edgeCapacity) const; - // Get the list of faces in this convex hull. const qhList& GetFaceList() const; diff --git a/include/bounce/quickhull/qh_hull.inl b/include/bounce/quickhull/qh_hull.inl index c5ed4ed..be0da6c 100644 --- a/include/bounce/quickhull/qh_hull.inl +++ b/include/bounce/quickhull/qh_hull.inl @@ -52,27 +52,6 @@ inline const qhList& qhHull::GetFaceList() const return m_faceList; } -inline u32 qhHull::GetEdgeList(qhHalfEdge** edges, u32 edgeCapacity) const -{ - u32 edgeCount = 0; - for (qhFace* f = m_faceList.head; f; f = f->next) - { - qhHalfEdge* edge = f->edge; - do - { - if (edgeCount == edgeCapacity) - { - return edgeCount; - } - - edges[edgeCount++] = edge; - - edge = edge->next; - } while (edge != f->edge); - } - return edgeCount; -} - inline u32 qhHull::GetIterations() const { return m_iterations;