Revert "common: GLM_MakeInwardFacingEdgePlanes: handle non-convex poly"

This reverts commit bef9dd63d2.
This commit is contained in:
Eric Wasylishen 2017-02-15 01:19:54 -07:00
parent 7294f06ccc
commit 71fbd17ea8
1 changed files with 0 additions and 12 deletions

View File

@ -357,18 +357,6 @@ GLM_MakeInwardFacingEdgePlanes(std::vector<vec3> points)
result.push_back(edgeplane.second);
}
// For each edge plane, check that every point in `points` is on or above it
// If this fails, the polygon is not convex.
for (const vec4 &edgeplane : result) {
for (const vec3 &point : points) {
const float distAbove = GLM_DistAbovePlane(edgeplane, point);
if (distAbove < -POINT_EQUAL_EPSILON) {
// Non-convex polygon
return {};
}
}
}
return result;
}