]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix complilation problem on Mandriva 2010 (gcc 4.4)
authorvsr <vsr@opencascade.com>
Thu, 18 Nov 2010 10:40:04 +0000 (10:40 +0000)
committervsr <vsr@opencascade.com>
Thu, 18 Nov 2010 10:40:04 +0000 (10:40 +0000)
src/StdMeshers/StdMeshers_Import_1D2D.cxx

index 0062de31d0dc6b34b55b1f778af731d4d9f6daba..aa96bdba8b44fbe7e79b7d05e74f8fbc3979178f 100644 (file)
@@ -269,10 +269,11 @@ bool StdMeshers_Import_1D2D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape &
         int iNext = helper.WrapIndex( iNode+1, face->NbCornerNodes() );
         int iPrev = helper.WrapIndex( iNode-1, face->NbCornerNodes() );
 
-        gp_Vec n1n0( SMESH_MeshEditor::TNodeXYZ( newNodes[iPrev] ) -
-                     SMESH_MeshEditor::TNodeXYZ( newNodes[iNode] ));
-        gp_Vec n1n2( SMESH_MeshEditor::TNodeXYZ( newNodes[iNext] ) -
-                     SMESH_MeshEditor::TNodeXYZ( newNodes[iNode] ));
+       SMESH_MeshEditor::TNodeXYZ prevNode( newNodes[iPrev] );
+       SMESH_MeshEditor::TNodeXYZ curNode ( newNodes[iNode] );
+       SMESH_MeshEditor::TNodeXYZ nextNode( newNodes[iNext] );
+        gp_Vec n1n0( prevNode - curNode);
+        gp_Vec n1n2( nextNode - curNode );
         gp_Vec meshNorm = n1n2 ^ n1n0;
 
         if ( geomNorm * meshNorm < 0 )