From d27067784affe0758bfb5da002b64957e0fe6b39 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 3 Mar 2009 08:38:05 +0000 Subject: [PATCH] 0020184: EDF SMESH 952: Projection 2D does not work use ShapeAnalysis::OuterWire() insead of BRepTools::OuterWire() --- src/SMESH/SMESH_Block.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_Block.cxx b/src/SMESH/SMESH_Block.cxx index 0fd49966a..fd4edab32 100644 --- a/src/SMESH/SMESH_Block.cxx +++ b/src/SMESH/SMESH_Block.cxx @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -963,11 +964,14 @@ int SMESH_Block::GetOrderedEdges (const TopoDS_Face& theFace, { // put wires in a list, so that an outer wire comes first list aWireList; - TopoDS_Wire anOuterWire = BRepTools::OuterWire( theFace ); - aWireList.push_back( anOuterWire ); + //TopoDS_Wire anOuterWire = BRepTools::OuterWire( theFace ); ### issue 0020184 + TopoDS_Wire anOuterWire = ShapeAnalysis::OuterWire( theFace ); + //aWireList.push_back( anOuterWire ); ### issue 0020184 for ( TopoDS_Iterator wIt (theFace); wIt.More(); wIt.Next() ) if ( !anOuterWire.IsSame( wIt.Value() )) aWireList.push_back( TopoDS::Wire( wIt.Value() )); + else + aWireList.push_front( TopoDS::Wire( wIt.Value() ));// ### issue 0020184 // loop on edges of wires theNbVertexInWires.clear();