1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-02 17:46:22 +03:00

0024440: Regressions in products test group sat/doc_1

Check for closed shell is corrected
This commit is contained in:
szv 2013-12-12 12:32:51 +04:00 committed by abv
parent 60bf98ae02
commit 4e7bb26301
3 changed files with 8 additions and 9 deletions

View File

@ -873,14 +873,17 @@ Standard_Boolean ShapeFix_Shell::FixFaceOrientation(const TopoDS_Shell& shell,co
TopTools_MapOfShape aMapMultiConnectEdges;
Standard_Boolean isFreeBoundaries = Standard_False;
for(Standard_Integer k = 1; k <= aMapEdgeFaces.Extent(); k++) {
Standard_Integer aFaceCount = aMapEdgeFaces.FindFromIndex(k).Extent();
const Standard_Integer aFaceCount = aMapEdgeFaces.FindFromIndex(k).Extent();
if (!isFreeBoundaries && aFaceCount == 1) {
TopoDS_Edge E = TopoDS::Edge(aMapEdgeFaces.FindKey(k));
if (!BRep_Tool::Degenerated(E))
isFreeBoundaries = Standard_True;
}
//Finds multishared edges
if (isAccountMultiConex && aFaceCount > 2)
else if (isAccountMultiConex && aFaceCount > 2)
aMapMultiConnectEdges.Add(aMapEdgeFaces.FindKey(k));
if (aFaceCount == 1)
isFreeBoundaries = Standard_True;
}
if (BRep_Tool::IsClosed (myShell) == isFreeBoundaries)
if (BRep_Tool::IsClosed(myShell)? isFreeBoundaries : !isFreeBoundaries)
{
myShell.Closed (!isFreeBoundaries);
SendWarning (Message_Msg ("FixAdvShell.FixClosedFlag.MSG0"));//Shell has incorrect flag isClosed

View File

@ -1,6 +1,4 @@
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: TPSTAT : Faulty"
set filename db_exhaust-A.stp

View File

@ -1,6 +1,4 @@
# !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: TPSTAT : Faulty"
set filename db_exhaust-B.stp