I want to split an Irregular TopAbs_FACE,the aS1 is an Irregular TopAbs_FACE and the aS2 is formed by four TopAbs_FACE(colsed).
the aInterCurve2 is a Closed curve which are formed by four TopAbs_EDGE .
I add the four edge and face to the split ,however ,An Exception Thrown in Split2.Build();
I don't know why this happen,I check my code for many times,suprprisely ,in some shape my code performed successly ,but in the Irregular TopAbs_FACE ,it failed.
Hello, if you already using Boolean Operations to build the section curves, why don't you perform splitting using Booleans as well? The class you need to use is BRepAlgoAPI_Splitter.
Try using the following code (no BRepAlgoAPI_Section and BRepFeat_SplitShape need to be used). The result will contain all split parts of aS1. The parts of aS2 will not be included.