#include <algorithm>
#include <cmath>
#include <msp/gl/technique.h>
+#include "libr2c2/trackappearance.h"
#include "catalogue.h"
#include "tracktype.h"
own_data(false)
{
const TrackAppearance &appearance = tt.get_appearance();
- const Catalogue &cat = catalogue.get_catalogue();
const vector<TrackPart> &parts = tt.get_parts();
const Profile &ballast_profile = appearance.get_ballast_profile();
const Vector &tie_max = tie_profile.get_max_coords();
float tie_h = tie_max.y-tie_min.y;
- float gauge = cat.get_gauge();
+ float gauge = appearance.get_gauge();
string obj_name = tt.get_object();
if(!obj_name.empty())
{
float plen = part.get_length();
unsigned count = plen/spacing+0.5;
- (void)length;
- (void)offset;
- (void)profile;
unsigned n_vertices = profile.get_n_vertices();
float min_y = profile.get_min_coords().y;