I need to get both the common and cut boolean operation result of two shapes,
Do I have to do the boolean operation twice as the following code?
Is there any way that can do this faster?
Is there a way to get two results in one boolean operation?
Any help is much appreciated.
// TopoDS_Shape aS1=?
// TopoDS_Shape aS2=?
BRepAlgoAPI_Common aCommonOperation(aS1, aS2);
commonResult = aCommonOperation.Shape();
BRepAlgoAPI_Cut aCutOperation(aS1, aS2);
cutResult = aCutOperation.Shape();