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 )