summaryrefslogtreecommitdiffstats
path: root/core/math/geometry.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-08 19:10:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-08 19:11:08 -0300
commite46f28e02dde08bb515fdd796ffcf114361e4877 (patch)
tree495178f917c2103c30440f7befef4a24681bd577 /core/math/geometry.cpp
parentd8c40bccbbbf74001cbd085da5f71180e054e17f (diff)
downloadredot-engine-e46f28e02dde08bb515fdd796ffcf114361e4877.tar.gz
Removed splits in Polygon editor, replace by internal vertices and polygon support.
Diffstat (limited to 'core/math/geometry.cpp')
-rw-r--r--core/math/geometry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp
index c51ffd7b0a..12c88f43b3 100644
--- a/core/math/geometry.cpp
+++ b/core/math/geometry.cpp
@@ -32,6 +32,7 @@
#include "core/print_string.h"
+/* this implementation is very inefficient, commenting unless bugs happen. See the other one.
bool Geometry::is_point_in_polygon(const Vector2 &p_point, const Vector<Vector2> &p_polygon) {
Vector<int> indices = Geometry::triangulate_polygon(p_polygon);
@@ -42,6 +43,7 @@ bool Geometry::is_point_in_polygon(const Vector2 &p_point, const Vector<Vector2>
}
return false;
}
+*/
void Geometry::MeshData::optimize_vertices() {