Fix the plane vector

This commit is contained in:
eap 2017-10-03 20:12:52 +03:00
parent 869b4c84f2
commit ba27d23aec

View File

@ -13294,7 +13294,7 @@ void SMESH_MeshEditor::MakePolyLine( TListOfPolySegments& theSegments,
double maxDist = 0; double maxDist = 0;
for ( size_t iP = 1; iP < path.myPoints.size(); ++iP ) 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 ) if ( dist > maxDist )
{ {
maxDist = dist; maxDist = dist;