From: eap Date: Tue, 3 Mar 2009 08:48:39 +0000 (+0000) Subject: 0020184: EDF SMESH 952: Projection 2D does not work X-Git-Tag: V4_1_5rc1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7cf00a5066ae61bfd15ac7535e669bf2fcc1cd1c;p=modules%2Fsmesh.git 0020184: EDF SMESH 952: Projection 2D does not work use ShapeAnalysis::OuterWire() insead of BRepTools::OuterWire() --- 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();