@@ -399,9 +399,9 @@ public static ArrayList<Transform> pathToTransforms(List<List<Vector3d>> points,
399399 }
400400 // println "A string = " +pathStringA
401401 // println "B String = " +pathStringB
402- BezierPath path = new BezierPath (10 );
402+ BezierPath path = new BezierPath ();
403403 path .parsePathString (pathStringA );
404- BezierPath path2 = new BezierPath (10 );
404+ BezierPath path2 = new BezierPath ();
405405 path2 .parsePathString (pathStringB );
406406
407407 return bezierToTransforms (path , path2 , resolution , null , null );
@@ -414,10 +414,10 @@ public static ArrayList<CSG> moveAlongProfile(CSG object, List<List<Vector3d>> p
414414
415415 public static ArrayList <Transform > bezierToTransforms (Vector3d controlA , Vector3d controlB , Vector3d endPoint ,
416416 int iterations ) {
417- BezierPath path = new BezierPath (10 );
417+ BezierPath path = new BezierPath ();
418418 path .parsePathString ("C " + controlA .x + "," + controlA .y + " " + controlB .x + "," + controlB .y + " "
419419 + endPoint .x + "," + endPoint .y );
420- BezierPath path2 = new BezierPath (10 );
420+ BezierPath path2 = new BezierPath ();
421421 path2 .parsePathString ("C " + controlA .x + "," + controlA .z + " " + controlB .x + "," + controlB .z + " "
422422 + endPoint .x + "," + endPoint .z );
423423
@@ -561,9 +561,9 @@ public static ArrayList<Transform> bezierToTransforms(Vector3d start, Vector3d c
561561 String b = "M " + start .x + "," + start .z + "\n " + "C " + controlA .x + "," + controlA .z + " " + controlB .x + ","
562562 + controlB .z + " " + endPoint .x + "," + endPoint .z ;
563563 // println "Start = "+startString
564- BezierPath path = new BezierPath (10 );
564+ BezierPath path = new BezierPath ();
565565 path .parsePathString (startString );
566- BezierPath path2 = new BezierPath (10 );
566+ BezierPath path2 = new BezierPath ();
567567 path2 .parsePathString (b );
568568 // newParts.remove(parts.size()-1)
569569 // newParts.remove(0)
@@ -781,7 +781,7 @@ private static Vector3d fromDouble(ArrayList<Double> controlA) {
781781 public static ArrayList <CSG > moveBezier (CSG slice , BezierPath pathA , int numSlices ) {
782782 Vector3d pointA = pathA .eval ((double ) 1.0 );
783783 String zpath = "C 0,0 " + pointA .x + "," + pointA .y + " " + pointA .x + "," + pointA .y ;
784- BezierPath pathB = new BezierPath (10 );
784+ BezierPath pathB = new BezierPath ();
785785 pathB .parsePathString (zpath );
786786
787787 return moveBezier (slice , pathA , pathB , numSlices );
0 commit comments