]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021540: [CEA] Internal test fails : prisms
authoreap <eap@opencascade.com>
Wed, 11 Apr 2012 14:34:04 +0000 (14:34 +0000)
committereap <eap@opencascade.com>
Wed, 11 Apr 2012 14:34:04 +0000 (14:34 +0000)
   Fix FindMatchingNodesOnFaces() for spheres ( DeuxSpheres.py )

src/StdMeshers/StdMeshers_ProjectionUtils.cxx

index bc497c74bd4268cdf820f921b0cc609e0bc9972f..37e97eabe8f1ec72ec2f1418071ecf714b3b8fa4 100644 (file)
@@ -1829,7 +1829,7 @@ FindMatchingNodesOnFaces( const TopoDS_Face&     face1,
       notInSet.insert( f2 );
       for ( int i = 0; i < nbNodes; ++i ) {
         const SMDS_MeshNode* n1 = faceToKeep->GetNode( i );
-        const SMDS_MeshNode* n2 = faceToKeep->GetNode( i+1 % nbNodes );
+        const SMDS_MeshNode* n2 = faceToKeep->GetNode(( i+1 ) % nbNodes );
         f1 = SMESH_MeshEditor::FindFaceInSet( n1, n2, inSet, notInSet );
         if ( f1 )
           elems.insert( f1 );