From 15b8ea3f42f155950cb5403ec4e415e744a96f7e Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Sun, 13 May 2018 13:28:27 -0300 Subject: [PATCH] remove unecessary initialization; add two comments --- src/bounce/quickhull/qh_hull.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bounce/quickhull/qh_hull.cpp b/src/bounce/quickhull/qh_hull.cpp index c8ddf40..87ab58b 100644 --- a/src/bounce/quickhull/qh_hull.cpp +++ b/src/bounce/quickhull/qh_hull.cpp @@ -194,19 +194,15 @@ void qhHull::Construct(const b3Vec3* vs, u32 count) m_newFaces = (qhFace**)((u8*)m_conflictVertices + V * sizeof(qhVertex*)); m_newFaceCount = 0; - m_vertexList.head = NULL; - m_vertexList.count = 0; - - m_faceList.head = NULL; - m_faceList.count = 0; - m_iterations = 0; + // Build initial tetrahedron if (!BuildInitialHull(vs, count)) { return; } + // Run Quickhull qhVertex* eye = FindEyeVertex(); while (eye) {