]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix the plane vector
authoreap <eap@opencascade.com>
Tue, 3 Oct 2017 17:12:52 +0000 (20:12 +0300)
committereap <eap@opencascade.com>
Tue, 3 Oct 2017 17:12:52 +0000 (20:12 +0300)
src/SMESH/SMESH_MeshEditor.cxx

index 671218aeb768ff0d0ccf82d0173e92a0594b2182..59d13e0a36b8020751bc3a031fb98c066fd52980 100644 (file)
@@ -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;