From 5434b881f421dd37e3996414744721cb3284b887 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 18 Nov 2010 10:40:04 +0000 Subject: [PATCH] Fix complilation problem on Mandriva 2010 (gcc 4.4) --- src/StdMeshers/StdMeshers_Import_1D2D.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 ) -- 2.39.2