I've just started using this tool and am excited about the possibilities.
My first test was to add code into an MFC app I'm working on to try out the boolean operations.
Here is the test:
TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,40,40);
TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),80);
TopoDS_Shape ShapeCut = BRepAlgoAPI_Cut(theSphere,theBox);
The first two lines seem to work fine, but the Cut command gives me an assert:
Unhandled exception at 0x7c81eb33 in ZEditor.exe: Microsoft C++ exception: StdFail_NotDone @ 0x0012eb7c.
Any idea what I did (or forgot to do?)