1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Removed splits in Polygon editor, replace by internal vertices and polygon support.

This commit is contained in:
Juan Linietsky
2019-01-08 19:10:24 -03:00
parent d8c40bccbb
commit e46f28e02d
9 changed files with 766 additions and 224 deletions

View File

@@ -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() {