X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fcatalogue.cpp;h=d84e2d0d5b1535709c2b924d028f0897fcaf75b4;hb=5929b101ee38b5668b328e7b1eac4bf49c912412;hp=2f932d62f1c6b6133c49958494b6b8e599ed2059;hpb=a2d709404d50cb755ef20829241e4ae51301e19a;p=r2c2.git diff --git a/source/3d/catalogue.cpp b/source/3d/catalogue.cpp index 2f932d6..d84e2d0 100644 --- a/source/3d/catalogue.cpp +++ b/source/3d/catalogue.cpp @@ -60,7 +60,7 @@ void Catalogue3D::build_endpoint_mesh(const TrackAppearance &appearance) const Vector &rail_min = rail_profile.get_min_coords(); const Vector &rail_max = rail_profile.get_max_coords(); - float gauge = catalogue.get_gauge(); + float gauge = appearance.get_gauge(); float width = max(max(-ballast_min.x, ballast_max.x)*2, gauge+(rail_max.x-rail_min.x)*2)+0.004; float height = ballast_max.y-ballast_min.y+rail_max.y-rail_min.y+0.01;