17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 12:17:29 +01:00

widen parallel snap and show 4 / 4.5 / 4.75 m

This commit is contained in:
maj00r
2026-10-08 22:17:48 +02:00
parent 5d075e75fe
commit c3dc7511e1
4 changed files with 62 additions and 22 deletions

View File

@@ -629,6 +629,8 @@ class editor_mode : public application_mode, private editor_track::observer
bool snaps{false};
double spacing{0.0};
double distance{0.0};
double angle{0.0}; // deg between the two straights
double correction{0.0}; // m along the line normal to reach the spacing
editor_track::straight const *neighbour{nullptr};
};
parallel_offer straight_parallel_offer(editor_track::straight const &Line, glm::dvec3 const &Offset) const;