I Tried to invert some normal of faces of a given shape. My normal is modelised by the order in which the vertices of the face are recuperated.
I test a code like that and it works well.
the two results of getVertexInOrder are inversed. Ok that works.
But when I want to modify some faces' normal of a shape, I tried 2 solutions but it doesn't work.
using a TopExp::MapShapes(aShape,TopAbs_FACE,faceMap) and get the faces by reference
TopoDS_Face & exploredFace = TopoDS::Face(faceMap(i))
if (hasToBeModified(exploredFace,aListOfFacesToModify ))
Then when I re-explore the shape, the faces normal have the sames values than before the reverse.
Same code but the faces are not modified online but added in a sewing algorithm (+ faces that keep the same orientation).Then, the new sewedShape is explored and some orientations of faces are modified in order to have a sort of homogeneityin faces orientation.
If you have ideas, thanks in advance