Skip to content

Commit

Permalink
Part: adjust orientation of refined face to input faces
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 22, 2021
1 parent a5411da commit aa19f8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Part/App/modelRefine.cpp
Expand Up @@ -1061,6 +1061,11 @@ bool FaceUniter::process()
TopoDS_Face newFace = (*typeIt)->buildFace(adjacencySplitter.getGroup(adjacentIndex));
if (!newFace.IsNull())
{
// the created face should have the same orientation as the input faces
const FaceVectorType& faces = adjacencySplitter.getGroup(adjacentIndex);
if (!faces.empty() && newFace.Orientation() != faces[0].Orientation()) {
newFace.Orientation(faces[0].Orientation());
}
facesToSew.push_back(newFace);
if (facesToRemove.capacity() <= facesToRemove.size() + adjacencySplitter.getGroup(adjacentIndex).size())
facesToRemove.reserve(facesToRemove.size() + adjacencySplitter.getGroup(adjacentIndex).size());
Expand Down

0 comments on commit aa19f8b

Please sign in to comment.