We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 314fca2 commit 24d3c34Copy full SHA for 24d3c34
1 file changed
src/main/java/eu/mihosoft/vrl/v3d/CSG.java
@@ -307,9 +307,13 @@ public CSG processPolygonsToTriangles(ArrayList<Polygon> polygons) throws Coline
307
}
308
309
310
- if (triList.isEmpty())
311
- throw new IllegalArgumentException("CSG produced no valid triangles after triangulation");
312
-
+ if (triList.isEmpty()) {
+ vertices = new double[0];
+ triangles = new long[0];
313
+ vertCount=0;
314
+ triCount=0;
315
+ return this;
316
+ }
317
vertCount = vertexList.size();
318
triCount = triList.size() / 3;
319
0 commit comments