17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 09:19:12 +01:00

feat(editor): dragging straight refits neighbor curves

This commit is contained in:
maj00r
2026-10-03 00:55:29 +02:00
parent 613ee89c69
commit de5f2069f7
4 changed files with 131 additions and 4 deletions

View File

@@ -118,6 +118,8 @@ class editor_track
static straight find_straight(TTrack &Track, straight_tolerance const &Tolerance);
static std::vector<straight> find_straights(double const Minimumlength, straight_tolerance const &Tolerance);
static std::vector<TTrack *> straight_affected(std::vector<straight> const &Lines);
static TTrack *outside_neighbour(straight const &Line, bool const Atend);
static bool touches(TTrack const &Track, glm::dvec3 const &Point);
struct curve
{
TTrack *from{nullptr};