From: vsr Date: Thu, 18 Nov 2010 10:40:04 +0000 (+0000) Subject: Fix complilation problem on Mandriva 2010 (gcc 4.4) X-Git-Tag: tag_Before_ViscLayers_PrototypeVersion~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5434b881f421dd37e3996414744721cb3284b887;p=modules%2Fsmesh.git Fix complilation problem on Mandriva 2010 (gcc 4.4) --- diff --git a/src/StdMeshers/StdMeshers_Import_1D2D.cxx b/src/StdMeshers/StdMeshers_Import_1D2D.cxx index 0062de31d..aa96bdba8 100644 --- a/src/StdMeshers/StdMeshers_Import_1D2D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D2D.cxx @@ -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 )