Skip to content

Commit 4e1a26d

Browse files
committed
Make sure tmp STLs are created fast
1 parent 08c0ca2 commit 4e1a26d

File tree

4 files changed

+270
-231
lines changed

4 files changed

+270
-231
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/creature/CadFileExporter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,10 @@ private File makeFreecad(String nameBase,List<CSG> current ) throws IOException
167167

168168
private File makeStl(String nameBase,CSG tmp ) throws IOException{
169169
File stl = new File(nameBase + ".stl");
170-
170+
boolean manifold=CSG.isPreventNonManifoldTriangles();
171+
CSG.setPreventNonManifoldTriangles(false);
171172
FileUtil.write(Paths.get(stl.getAbsolutePath()), tmp.toStlString());
173+
CSG.setPreventNonManifoldTriangles(manifold);
172174
System.out.println("Writing "+stl.getAbsolutePath());
173175
return stl;
174176
}

0 commit comments

Comments
 (0)