Skip to content

Commit 9572bb0

Browse files
committed
save the raw sphere
1 parent caccd85 commit 9572bb0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ public void loadTest() throws Throwable {
1717
try {
1818
CSG.setDefaultOptType(OptType.Manifold3d);
1919
CSG cube = new Cube(50,50,50).toCSG();
20-
CSG sphere = new Sphere(30, 10, 10).toCSG();
20+
CSG sphere = new Sphere(30,10, 10).toCSG();
21+
FileUtil.write(Paths.get("Manifole-sphere.stl"),
22+
sphere.toStlString());
2123
List<Polygon> polygons = Slice.slice(sphere, new Transform(), 0);
2224
SVGExporter.export(polygons, new File("Manifold-SVGExportTest.svg"), false);
2325
CSG difference = cube.difference(sphere);
2426
CSG intersect = cube.intersect(sphere);
2527
CSG union = cube.union(sphere);
26-
FileUtil.write(Paths.get("Manifole-sphere.stl"),
27-
sphere.toStlString());
28+
2829
FileUtil.write(Paths.get("Manifole-union.stl"),
2930
union.toStlString());
3031
FileUtil.write(Paths.get("Manifole-difference.stl"),

0 commit comments

Comments
 (0)