diff --git a/application/editormodegauge.cpp b/application/editormodegauge.cpp index 53f2e889..f01ddce6 100644 --- a/application/editormodegauge.cpp +++ b/application/editormodegauge.cpp @@ -51,8 +51,9 @@ gauge_line make_line(editor_track::route &Route) gauge_line line; line.samples = editor_track::sample_route(Route, 1.0); std::vector chainage, curvature, cant; - for (auto const &sample : line.samples) + for (auto &sample : line.samples) { + sample.position.y += gauge::rail_height; chainage.push_back(sample.chainage); curvature.push_back(sample.curvature); cant.push_back(sample.cant); diff --git a/editor/editorGauge.hpp b/editor/editorGauge.hpp index 7ef65bbf..ee9b6be8 100644 --- a/editor/editorGauge.hpp +++ b/editor/editorGauge.hpp @@ -37,6 +37,9 @@ std::vector default_profiles(); std::vector load_profiles(std::string const &File); void save_profiles(std::string const &File, std::vector const &Profiles); +// the points of the paths in the scenery lie at the rail foot, the gauge is measured from the rail head +double constexpr rail_height{0.18}; + // below this height the outline is the limit installation gauge, which leaves the room for the platforms double constexpr lower_part{1.17};