Partial fix for bug #31458 Convex Hull operator crash

Change hull's point/triangle side test to > rather than >=.

This seems to fix the (infinite?) loop, but not the crash.
This commit is contained in:
Nicholas Bishop
2012-05-14 20:59:08 +00:00
parent f87fda5864
commit 0de912b82d

View File

@@ -161,7 +161,7 @@ static GHash *hull_triangles_v_outside(GHash *hull_triangles, const BMVert *v)
GHASH_ITER (iter, hull_triangles) {
HullTriangle *t = BLI_ghashIterator_getKey(&iter);
if (hull_point_tri_side(t, v->co) >= 0)
if (hull_point_tri_side(t, v->co) > 0)
BLI_ghash_insert(outside, t, NULL);
}