Skip to content

Commit e40eef7

Browse files
committed
the csg stack
1 parent 3628cbf commit e40eef7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,15 @@ public CSG dumbUnion(CSG csg) {
876876
* @return union of this csg and the specified csgs
877877
*/
878878
public CSG union(List<CSG> csgs) {
879+
if (CSGClient.isRunning()) {
880+
ArrayList<CSG> go = new ArrayList<CSG>(csgs);
881+
try {
882+
return CSGClient.getClient().union(go).get(0);
883+
} catch (Exception e) {
884+
// TODO Auto-generated catch block
885+
e.printStackTrace();
886+
}
887+
}
879888
CSG result = this;
880889

881890
for (int i = 0; i < csgs.size(); i++) {

0 commit comments

Comments
 (0)