From ad76b3222f07a7f36d8532e0d3a686f1e4f1a0de Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Tue, 23 Aug 2011 00:25:17 +0000 Subject: [PATCH] update to the latest HACD convex decomposition (minor fixes) --- Extras/HACD/hacdHACD.cpp | 2 +- Extras/HACD/hacdHACD.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Extras/HACD/hacdHACD.cpp b/Extras/HACD/hacdHACD.cpp index 4c17f8e1c..d68b1ee58 100644 --- a/Extras/HACD/hacdHACD.cpp +++ b/Extras/HACD/hacdHACD.cpp @@ -162,7 +162,7 @@ namespace HACD } } } - if (distC1C2 < m_ccConnectDist && t1 > 0 && t2 > 0) + if (distC1C2 <= m_ccConnectDist && t1 > 0 && t2 > 0) { m_graph.AddEdge(t1, t2); diff --git a/Extras/HACD/hacdHACD.h b/Extras/HACD/hacdHACD.h index 0f9166f42..5bb692d83 100644 --- a/Extras/HACD/hacdHACD.h +++ b/Extras/HACD/hacdHACD.h @@ -111,7 +111,7 @@ namespace HACD void SetAddNeighboursDistPoints(bool addNeighboursDistPoints) { m_addNeighboursDistPoints = addNeighboursDistPoints;} //! Specifies wheter extra points should be added when computing the concavity //! @return true = extra points should be added - const bool GetAddNeighboursDistPoints() const { return m_addExtraDistPoints;} + const bool GetAddNeighboursDistPoints() const { return m_addNeighboursDistPoints;} //! Sets the points of the input mesh (Remark: the input points will be scaled and shifted. Use DenormalizeData() to invert those operations) //! @param points pointer to the input points void SetPoints(Vec3 * points) { m_points = points;}