1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030905: Modeling Algorithms - Faulty shapes in UnifySameDomain

Make face FORWARD before adding wire in it.
This commit is contained in:
emv
2019-08-20 14:23:29 +03:00
committed by apn
parent e837b3a26c
commit c5cee3222f
2 changed files with 19 additions and 2 deletions

View File

@@ -2691,10 +2691,11 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
}
else if (NewFaces.Length() == 1)
{
TopoDS_Shape aNewFace = NewFaces(1).Oriented (TopAbs_FORWARD);
for (Standard_Integer ii = 1; ii <= NewWires.Length(); ii++)
BB.Add(NewFaces(1), NewWires(ii));
BB.Add(aNewFace, NewWires(ii));
for (Standard_Integer ii = 1; ii <= InternalWires.Length(); ii++)
BB.Add(NewFaces(1), InternalWires(ii));
BB.Add(aNewFace, InternalWires(ii));
myContext->Merge(faces, NewFaces(1));
}
else