mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
feat(editor): no sub-metre straights, switches snap, K splits path
This commit is contained in:
@@ -150,6 +150,8 @@ class editor_track
|
||||
static std::vector<switch_template> find_switch_templates();
|
||||
static TTrack *load_path(std::string const &Text, TTrack const &Template);
|
||||
static TTrack *create_path(TTrack const &Style, segment_data const &Path);
|
||||
static TTrack *split_path(TTrack &Track, double const T);
|
||||
static double nearest_parameter(TTrack const &Track, glm::dvec3 const &Point);
|
||||
static std::vector<segment_data> place_switch(switch_template const &Template, glm::dvec3 const &Origin, glm::dvec2 const &Direction, int const Side, double const Grade);
|
||||
static TTrack *create_switch(switch_template const &Template, std::vector<segment_data> const &Paths, TTrack const &Style);
|
||||
static void move_straights(std::vector<straight> const &Lines, std::vector<std::pair<glm::dvec3, glm::dvec3>> const &Ends);
|
||||
|
||||
Reference in New Issue
Block a user