mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 23:30:32 +05:00
0021825: Error in the example of "Projection Algorithms" in the user's guide
update to reflect introduction of StdMeshers_ShapeShapeBiDirectionMap instead of TopTools_DataMapOfShapeShape
This commit is contained in:
parent
3058574b87
commit
b992383e2a
@ -296,12 +296,12 @@ bool StdMeshers_Projection_3D::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aS
|
|||||||
SMESH_Block::GetFaceEdgesIDs( fId, edgeIdVec );
|
SMESH_Block::GetFaceEdgesIDs( fId, edgeIdVec );
|
||||||
for ( int i = 0; i < edgeIdVec.size(); ++i ) {
|
for ( int i = 0; i < edgeIdVec.size(); ++i ) {
|
||||||
int eID = edgeIdVec[ i ];
|
int eID = edgeIdVec[ i ];
|
||||||
shape2ShapeMap.Bind( tgtShapes( eID ), scrShapes( eID ));
|
shape2ShapeMap.Bind( scrShapes( eID ), tgtShapes( eID ));
|
||||||
if ( i < 2 ) {
|
if ( i < 2 ) {
|
||||||
vector< int > vertexIdVec;
|
vector< int > vertexIdVec;
|
||||||
SMESH_Block::GetEdgeVertexIDs( eID, vertexIdVec );
|
SMESH_Block::GetEdgeVertexIDs( eID, vertexIdVec );
|
||||||
shape2ShapeMap.Bind( tgtShapes( vertexIdVec[0] ), scrShapes( vertexIdVec[0] ));
|
shape2ShapeMap.Bind( scrShapes( vertexIdVec[0]), tgtShapes( vertexIdVec[0]) );
|
||||||
shape2ShapeMap.Bind( tgtShapes( vertexIdVec[1] ), scrShapes( vertexIdVec[1] ));
|
shape2ShapeMap.Bind( scrShapes( vertexIdVec[1]), tgtShapes( vertexIdVec[1]) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user