update to the latest HACD convex decomposition (minor fixes)

This commit is contained in:
erwin.coumans
2011-08-23 00:25:17 +00:00
parent 7743f5bce5
commit ad76b3222f
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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<Real> * points) { m_points = points;}