Draw projection lines for point-line distance constraints.

This is only visible when the point and line lie within the workplane,
but the constraint label does not.
This commit is contained in:
EvilSpirit 2016-07-12 22:18:49 +06:00 committed by whitequark
parent ad2371cfae
commit 6e17780e01

View File

@ -261,6 +261,9 @@ void Constraint::DoLineWithArrows(Vector ref, Vector a, Vector b,
LineDrawOrGetDistance(a, ae.Plus(out.WithMagnitude(10*pixels)));
if(!onlyOneExt) {
LineDrawOrGetDistance(b, be.Plus(out.WithMagnitude(10*pixels)));
} else {
Vector prj = be;
DoProjectedPoint(&prj);
}
int within = DoLineTrimmedAgainstBox(ref, ae, be);