]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021096: EDF 1729 SMESH: Create a Projection 1D-2D algorithm
authoreap <eap@opencascade.com>
Thu, 13 Oct 2011 05:35:12 +0000 (05:35 +0000)
committereap <eap@opencascade.com>
Thu, 13 Oct 2011 05:35:12 +0000 (05:35 +0000)
   fix for projection of a group

src/StdMeshers/StdMeshers_Projection_1D2D.cxx

index 6053964286192d1c4198a7b0e5d7b08020b71582..02ec4a9aa96af34bdd2dd9c46517f6a846d3c2e6 100644 (file)
@@ -100,8 +100,8 @@ bool StdMeshers_Projection_1D2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape
       int edgeID = meshDS->ShapeToIndex( wires[ iWire ]->Edge(0) );
       for ( size_t i = 1; i < nodes.size(); ++i )
       {
-        if ( checkExisting && meshDS->FindEdge( nodes[i-1], nodes[i])
-             continue;
+        if ( checkExisting && meshDS->FindEdge( nodes[i-1], nodes[i]))
+          continue;
         SMDS_MeshElement* e = meshDS->AddEdge( nodes[i-1], nodes[i] );
         if ( nodes[i-1]->getshapeId() != edgeID &&
              nodes[i  ]->getshapeId() != edgeID )