Salome HOME
0021893: EDF 2133 SMESH : Improvement of 3D extrusion algorithm
authoreap <eap@opencascade.com>
Mon, 28 Jan 2013 08:35:50 +0000 (08:35 +0000)
committereap <eap@opencascade.com>
Mon, 28 Jan 2013 08:35:50 +0000 (08:35 +0000)
arg theFirstVertex of SMESH_Block::GetOrderedEdges() became optional

src/SMESH/SMESH_Pattern.cxx

index a2bb1aa00bf8ac082d4718f68e61178af9acb028..757a83354b1e3ae175954d7e8e0794032a82da60 100644 (file)
@@ -541,7 +541,7 @@ bool SMESH_Pattern::Load (SMESH_Mesh*        theMesh,
   bool isClosed = helper.HasSeam();
   list<TopoDS_Edge> eList;
   list<TopoDS_Edge>::iterator elIt;
-  SMESH_Block::GetOrderedEdges( face, the1stVertex, eList, myNbKeyPntInBoundary );
+  SMESH_Block::GetOrderedEdges( face, eList, myNbKeyPntInBoundary, the1stVertex );
 
   // check that requested or needed projection is possible
   bool isMainShape = theMesh->IsMainShape( face );
@@ -2370,7 +2370,7 @@ bool SMESH_Pattern::Apply (const TopoDS_Face&   theFace,
 
   list< TopoDS_Edge > eList;
   list< int >         nbVertexInWires;
-  int nbWires = SMESH_Block::GetOrderedEdges( face, theVertexOnKeyPoint1, eList, nbVertexInWires);
+  int nbWires = SMESH_Block::GetOrderedEdges( face, eList, nbVertexInWires, theVertexOnKeyPoint1);
   if ( !theVertexOnKeyPoint1.IsSame( TopExp::FirstVertex( eList.front(), true )))
   {
     MESSAGE( " theVertexOnKeyPoint1 not found in the outer wire ");