I use OpenCascade V7.4.0 for windows 32bit.
I tryed to get shape difference by BRepAlgoAPI_Cut , but the process of BRepAlgoAPI_Cut constructor is not return. My application memory keep growing from 100MB to 1.5GB and finally my application crashed.
BRepAlgoAPI_Cut cut( shapeBase, shapeCut);
Then, I outputed shapes before cut for decrease shape error.
Thereby, My application memory does not keep growing and cut method is finished.
BRepTools::Write( shapeBase, "C:/@test/shapeBase.brep" );
BRepTools::Write( shapeCut, "C:/@test/shapeCut.brep" );
BRepTools::Read( shapeBase, "C:/@test/shapeBase.brep", bb );
BRepTools::Read( shapeCut, "C:/@test/shapeCut.brep", bb );
BRepAlgoAPI_Cut cut( shapeBase, shapeCut );
But the processing time is too long and I want to Interrupt cut process by processing time or application memory size.
Is there any good way?