File tree Expand file tree Collapse file tree
main/java/eu/mihosoft/vrl/v3d
test/java/eu/mihosoft/vrl/v3d Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments