mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 10:19:20 +02:00
feat(editor): tracks drawn without a design get digitized: the route design keeps the line it opens in the scenery when no design is kept for it, or says why it can't (straights meeting with no curve, the curves read leaving a path by how much), trying the other transition shape before giving up; Digitize all the tracks in the route design does it for every line of the scenery and reports the count; a kept design counts as departed only where no path lies along it any more, so a parallel track or a diverging one beside a digitized line no longer shows it as left by metres; self-test command digitizeall
This commit is contained in:
@@ -86,6 +86,7 @@ int departed(std::vector<TTrack *> const &Tracks, double &Departure);
|
||||
// keeps the design in the file of the layer, in place of the one with the same ends
|
||||
int store(alignment::design const &Design, alignment::result const &Result, double const Origin, scene::layer_handle const Layer, std::string const &Source = "designed");
|
||||
bool follows(alignment::result const &Result, std::vector<TTrack *> const &Tracks);
|
||||
double deviation(alignment::result const &Result, std::vector<TTrack *> const &Tracks, TTrack *&Worst);
|
||||
std::optional<double> chainage_on(alignment::result const &Result, glm::dvec3 const &Point);
|
||||
void forget(int const Index);
|
||||
// the point on the line of the stored alignment, if it lies by it within the reach
|
||||
|
||||
Reference in New Issue
Block a user