1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +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; TopTools_MapOfShape aMapMultiConnectEdges;
Standard_Boolean isFreeBoundaries = Standard_False; Standard_Boolean isFreeBoundaries = Standard_False;
for(Standard_Integer k = 1; k <= aMapEdgeFaces.Extent(); k++) { for(Standard_Integer k = 1; k <= aMapEdgeFaces.Extent(); k++) {
Standard_Integer aFaceCount = aMapEdgeFaces.FindFromIndex(k).Extent(); const Standard_Integer aFaceCount = aMapEdgeFaces.FindFromIndex(k).Extent();
//Finds multishared edges if (!isFreeBoundaries && aFaceCount == 1) {
if (isAccountMultiConex && aFaceCount > 2) TopoDS_Edge E = TopoDS::Edge(aMapEdgeFaces.FindKey(k));
aMapMultiConnectEdges.Add(aMapEdgeFaces.FindKey(k)); if (!BRep_Tool::Degenerated(E))
if (aFaceCount == 1)
isFreeBoundaries = Standard_True; isFreeBoundaries = Standard_True;
} }
if (BRep_Tool::IsClosed (myShell) == isFreeBoundaries) //Finds multishared edges
else if (isAccountMultiConex && aFaceCount > 2)
aMapMultiConnectEdges.Add(aMapEdgeFaces.FindKey(k));
}
if (BRep_Tool::IsClosed(myShell)? isFreeBoundaries : !isFreeBoundaries)
{ {
myShell.Closed (!isFreeBoundaries); myShell.Closed (!isFreeBoundaries);
SendWarning (Message_Msg ("FixAdvShell.FixClosedFlag.MSG0"));//Shell has incorrect flag isClosed 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 # !!!! This file is generated automatically, do not edit manually! See end script
puts "TODO CR23096 ALL: TPSTAT : Faulty"
set filename db_exhaust-A.stp set filename db_exhaust-A.stp

View File

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