I'm using OCC 4.0 and I want to use shape healing to fix bad shapes.
I used samples provided in Shape healing user's guide to fix edges, wires, etc...
This is a part of the code that fixes Curves3D and edges order in wires (to illustrate my questions).
CurrentFaceShape = ShapeExplorer.Current();
Face = TopoDS::Face(CurrentFaceShape);
Edge = TopoDS::Edge(FaceExplorer.Current());
Wire = TopoDS::Wire(WireExplorer.Current());
ShapeFix_Wire WireFix(Wire, Face, Precision);
ShapeAnalysis_Wire WireAnalysis(Wire, Face, Precision);
Wire = WireFix.Wire();
At the end "Edge" contains my fixed edge, and "Wire" my fixed wires.
My questions :
1 - Is it possible to replace the bad edges and wires in the original shape with the fixed ones using a simple function (didn't find such functions in help :-( )? or do I have to reconstruct a shape using BRepBuilder in a Compound, face by face ?
2 - If I have to rebuild a Fixed shape using BRepBuilder face by face, how can I Make a clean and fixed face from :
- My Old Face (from TopExplorer)
- My new edges
- My new wires
to add if to my fixed shape ?
Thanks in advance,