This commit is contained in:
Joachim Schoeberl 2021-09-06 17:40:40 +02:00
parent 5a82e18ed1
commit 1f599e6e47

View File

@ -319,7 +319,7 @@ public:
auto Line(double len, optional<string> name = nullopt) auto Line(double len, optional<string> name = nullopt)
{ {
gp_Dir2d dir = localpos.Direction(); gp_Dir2d dir = localpos.Direction();
cout << "dir = " << dir.X() << ", " << dir.Y() << endl; cout << IM(6) << "dir = " << dir.X() << ", " << dir.Y() << endl;
gp_Pnt2d oldp = localpos.Location(); gp_Pnt2d oldp = localpos.Location();
oldp.Translate(len*dir); oldp.Translate(len*dir);
return LineTo (oldp.X(), oldp.Y(), name); return LineTo (oldp.X(), oldp.Y(), name);