Face order are different in different versions after Boolean Operation

I have tried the Boolean Operation (BRepAlgoAPI_Fuse, BRepAlgoAPI_Cut, BRepAlgoAPI_Common) for the attached 2cylinder.brep file (which contains two cylinders).
When I use the following code to get the Faces of the result (Shape):

TopExp_Explorer Ex;
TopoDS_Face Face;

for (Ex.Init(Shape, TopAbs_FACE); EX.More(); Ex.Next())
Face = TopoDS::Face(Ex.Current());

For different versions, I get different Face order. Is this behavior normal?



m-aronsson's picture

If you mean the order you get the faces from the explorer ? if so, yes, this is normal, they can be returned in any order, the exact order is not defined.