Skip to content

Commit a8b084b

Browse files
committed
dumbUnion must be manifold
1 parent b0ba10f commit a8b084b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • src/main/java/eu/mihosoft/vrl/v3d

src/main/java/eu/mihosoft/vrl/v3d/CSG.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,10 @@ public CSG union(CSG csg) {
10981098
* @throws ColinearPointsException
10991099
*/
11001100
public CSG dumbUnion(CSG csg) {
1101+
if (defaultOptType == OptType.Manifold3d) {
1102+
// in manifold mode, take no action that could become non-manifold
1103+
return union(csg);
1104+
}
11011105
// boolean tri = triangulated && csg.triangulated;
11021106
CSG result = this.clone();
11031107
CSG other = csg.clone();

0 commit comments

Comments
 (0)