From ba27d23aec1277fb3a0109d887ceb205f34bd299 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 3 Oct 2017 20:12:52 +0300 Subject: [PATCH] Fix the plane vector --- src/SMESH/SMESH_MeshEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2