]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021825: Error in the example of "Projection Algorithms" in the user's guide
authoreap <eap@opencascade.com>
Thu, 30 Aug 2012 10:26:51 +0000 (10:26 +0000)
committereap <eap@opencascade.com>
Thu, 30 Aug 2012 10:26:51 +0000 (10:26 +0000)
  update to reflect introduction of StdMeshers_ShapeShapeBiDirectionMap
  instead of TopTools_DataMapOfShapeShape

src/StdMeshers/StdMeshers_Projection_3D.cxx

index 76c29c82215f3cc96ac1a6784801c970ff30fbcc..ed22742f75124308d1ad897b30ce204fee884a11 100644 (file)
@@ -296,12 +296,12 @@ bool StdMeshers_Projection_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aS
       SMESH_Block::GetFaceEdgesIDs( fId, edgeIdVec );
       for ( int i = 0; i < edgeIdVec.size(); ++i ) {
         int eID = edgeIdVec[ i ];
-        shape2ShapeMap.Bind( tgtShapes( eID ), scrShapes( eID ));
+        shape2ShapeMap.Bind( scrShapes( eID ), tgtShapes( eID ));
         if ( i < 2 ) {
           vector< int > vertexIdVec;
           SMESH_Block::GetEdgeVertexIDs( eID, vertexIdVec );
-          shape2ShapeMap.Bind( tgtShapes( vertexIdVec[0] ), scrShapes( vertexIdVec[0] ));
-          shape2ShapeMap.Bind( tgtShapes( vertexIdVec[1] ), scrShapes( vertexIdVec[1] ));
+          shape2ShapeMap.Bind( scrShapes( vertexIdVec[0]), tgtShapes( vertexIdVec[0]) );
+          shape2ShapeMap.Bind( scrShapes( vertexIdVec[1]), tgtShapes( vertexIdVec[1]) );
         }
       }
     }