Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 29, 2024
1 parent 2f1e543 commit a97352d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/eu/mihosoft/vrl/v3d/CSG.java
Original file line number Diff line number Diff line change
Expand Up @@ -1412,15 +1412,14 @@ public StringBuilder toStlString(StringBuilder sb) {
triangulate(false);
try {
sb.append("solid v3d.csg\n");
this.getPolygons().stream().forEach((Polygon p) -> {
for(Polygon p:getPolygons()) {
p.toStlString(sb);
});
}
sb.append("endsolid v3d.csg\n");
return sb;
} catch (Throwable t) {

t.printStackTrace();
throw new RuntimeException("STL failed to build for " + name);
throw new RuntimeException(t);
}
}
public CSG triangulate() {
Expand Down

0 comments on commit a97352d

Please sign in to comment.