diff --git a/src/point_tris_dist.cc b/src/point_tris_dist.cc index 53bb241..0e7f921 100644 --- a/src/point_tris_dist.cc +++ b/src/point_tris_dist.cc @@ -17,7 +17,7 @@ double pointSegmentDistance(double *p, double *a, double *b, double* direction) vtkMath::Normalize(direction); return vtkMath::Norm(ap, 3); } - + double h = vtkMath::ClampValue(vtkMath::Dot(ap, ab) / segSqrLength, 0., 1.); vtkMath::MultiplyScalar(ab, h);