implement bugfix from issue #388

this closes #388
This commit is contained in:
Axel Kohlmeyer
2017-02-27 18:22:21 -05:00
parent c0cf50bce5
commit b921b69f47

View File

@ -401,7 +401,7 @@ double RegBlock::find_closest_point(int i, double *x,
zc = p[2];
}
point_on_line_segment(corners[i][3],corners[i][4],x,p);
point_on_line_segment(corners[i][3],corners[i][0],x,p);
d2 = (p[0]-x[0])*(p[0]-x[0]) + (p[1]-x[1])*(p[1]-x[1]) +
(p[2]-x[2])*(p[2]-x[2]);
if (d2 < d2min) {