diff options
Diffstat (limited to 'core/math/delaunay_2d.h')
-rw-r--r-- | core/math/delaunay_2d.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/math/delaunay_2d.h b/core/math/delaunay_2d.h index 66b2f8f573..d637671686 100644 --- a/core/math/delaunay_2d.h +++ b/core/math/delaunay_2d.h @@ -57,7 +57,6 @@ public: }; static bool circum_circle_contains(const Vector<Vector2> &p_vertices, const Triangle &p_triangle, int p_vertex) { - Vector2 p1 = p_vertices[p_triangle.points[0]]; Vector2 p2 = p_vertices[p_triangle.points[1]]; Vector2 p3 = p_vertices[p_triangle.points[2]]; @@ -89,7 +88,6 @@ public: } static Vector<Triangle> triangulate(const Vector<Vector2> &p_points) { - Vector<Vector2> points = p_points; Vector<Triangle> triangles; @@ -112,7 +110,6 @@ public: triangles.push_back(Triangle(p_points.size() + 0, p_points.size() + 1, p_points.size() + 2)); for (int i = 0; i < p_points.size(); i++) { - Vector<Edge> polygon; for (int j = 0; j < triangles.size(); j++) { @@ -141,7 +138,6 @@ public: } for (int j = 0; j < polygon.size(); j++) { - if (polygon[j].bad) { continue; } |