From: eap Date: Tue, 3 Oct 2017 17:12:52 +0000 (+0300) Subject: Fix the plane vector X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba27d23aec1277fb3a0109d887ceb205f34bd299;p=modules%2Fsmesh.git Fix the plane vector --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 671218aeb..59d13e0a3 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -13294,7 +13294,7 @@ void SMESH_MeshEditor::MakePolyLine( TListOfPolySegments& theSegments, double maxDist = 0; for ( size_t iP = 1; iP < path.myPoints.size(); ++iP ) { - double dist = theSegments[iSeg].myVector * ( path.myPoints[iP] - path.myPoints[0] ); + double dist = Abs( theSegments[iSeg].myVector * ( path.myPoints[iP] - path.myPoints[0] )); if ( dist > maxDist ) { maxDist = dist;