Skip to content

Commit dea8c22

Browse files
committed
get rid of the triangulate methods to replace them with the correct name
1 parent 2fc9af3 commit dea8c22

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/eu/mihosoft/vrl/v3d/CSGClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ public static void main(String[] args) {
283283
CSG c = new Cube(10, 10, 10).toCSG();
284284
CSG u = CSG.unionAll(a, b, c);
285285
CSG d = a.difference(b);
286-
CSG t = d.triangulate(true);
287286
ArrayList<CSG> m = a.minkowskiHullShape(b);
288287
CSGClient.close();
289288
} catch (Exception e) {

src/main/java/eu/mihosoft/vrl/v3d/CSGServerHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private CSGResponse processCSGRequest(CSGRequest request) {
124124
case TRIANGULATE :
125125
CSG.setPreventNonManifoldTriangles(true);
126126
for (CSG c : csgList)
127-
back.add(c.triangulate(true));
127+
back.add(c.makeManifold());
128128
break;
129129
case UNION :
130130
try {

src/test/java/eu/mihosoft/vrl/v3d/ServerClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public CSG prep(CSG incoming) {
6666
CSG u1 = a.union(b, c);
6767
CSG i1 = c.intersect(b);
6868
CSG d1 = a.difference(b, dif);
69-
CSG t1 = d1.clone().triangulate(true);
69+
CSG t1 = d1.clone().makeManifold();
7070
ArrayList<CSG> m1 = a.minkowskiHullShape(b);
7171
CSG h1 = u1.hull();
7272

@@ -87,7 +87,7 @@ public CSG prep(CSG incoming) {
8787
if (testPoly(d1, d))
8888
fail("Difference Step fail , expected " + d1.getNumberOfTriangles() + " got "
8989
+ d.getNumberOfTriangles());
90-
CSG t = d.clone().triangulate(true);
90+
CSG t = d.clone().makeManifold();
9191
if (testPoly(t1, t))
9292
fail();
9393
ArrayList<CSG> m = a.minkowskiHullShape(b);

0 commit comments

Comments
 (0)