UI: Show XYZ distance components in the text window for two points
When two points are selected in addition to their distance show the X, Y and Z components of it in the text window. Implements #936pull/954/merge
parent
3309181773
commit
697ffdd731
|
@ -318,8 +318,9 @@ void TextWindow::DescribeSelection() {
|
||||||
Printf(true, " at " PT_AS_STR, COSTR(p0));
|
Printf(true, " at " PT_AS_STR, COSTR(p0));
|
||||||
Vector p1 = SK.GetEntity(gs.point[1])->PointGetNum();
|
Vector p1 = SK.GetEntity(gs.point[1])->PointGetNum();
|
||||||
Printf(false, " " PT_AS_STR, COSTR(p1));
|
Printf(false, " " PT_AS_STR, COSTR(p1));
|
||||||
double d = (p1.Minus(p0)).Magnitude();
|
Vector dv = p1.Minus(p0);
|
||||||
Printf(true, " d = %Fi%s", SS.MmToString(d).c_str());
|
Printf(true, " d = %Fi%s", SS.MmToString(dv.Magnitude()).c_str());
|
||||||
|
Printf(false, " d(x, y, z) = " PT_AS_STR, COSTR(dv));
|
||||||
} else if(gs.n == 2 && gs.points == 1 && gs.circlesOrArcs == 1) {
|
} else if(gs.n == 2 && gs.points == 1 && gs.circlesOrArcs == 1) {
|
||||||
Entity *ec = SK.GetEntity(gs.entity[0]);
|
Entity *ec = SK.GetEntity(gs.entity[0]);
|
||||||
if(ec->type == Entity::Type::CIRCLE) {
|
if(ec->type == Entity::Type::CIRCLE) {
|
||||||
|
|
Loading…
Reference in New Issue