فهرست منبع

Merge pull request #78368 from MatthewLJensen/delaunay-fixes

Consider all triangles for retention in Delaunay Triangulation
Rémi Verschelde 2 سال پیش
والد
کامیت
127e9d65cf
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      core/math/delaunay_2d.h

+ 1 - 1
core/math/delaunay_2d.h

@@ -145,7 +145,7 @@ public:
 		// Filter out the triangles containing vertices of the bounding triangle.
 		int preserved_count = 0;
 		Triangle *triangles_ptrw = triangles.ptrw();
-		for (int i = 0; i < triangles.size() - 1; i++) {
+		for (int i = 0; i < triangles.size(); i++) {
 			if (!(triangles[i].points[0] >= point_count || triangles[i].points[1] >= point_count || triangles[i].points[2] >= point_count)) {
 				triangles_ptrw[preserved_count] = triangles[i];
 				preserved_count++;