From 71fbd17ea86a65eac23baf7e06bd01b62b37be2c Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 15 Feb 2017 01:19:54 -0700 Subject: [PATCH] Revert "common: GLM_MakeInwardFacingEdgePlanes: handle non-convex poly" This reverts commit bef9dd63d27a4de86a20e164083aceed689f6a3a. --- common/mathlib.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/common/mathlib.cc b/common/mathlib.cc index 1b5e203f..77dd6b45 100644 --- a/common/mathlib.cc +++ b/common/mathlib.cc @@ -357,18 +357,6 @@ GLM_MakeInwardFacingEdgePlanes(std::vector 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; }