Revert "common: GLM_MakeInwardFacingEdgePlanes: handle non-convex poly"
This reverts commit bef9dd63d2.
This commit is contained in:
parent
7294f06ccc
commit
71fbd17ea8
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue