+
+ unsigned paths = tt.get_paths();
+ for(unsigned i=0; paths; ++i, paths>>=1)
+ {
+ GL::Mesh *mesh = 0;
+ if(paths&1)
+ {
+ mesh = new GL::Mesh(GL::VERTEX3);
+ GL::MeshBuilder bld(*mesh);
+ unsigned index = 0;
+ for(vector<TrackPart>::const_iterator j=parts.begin(); j!=parts.end(); ++j)
+ if(j->get_path()==i)
+ build_part(*j, cat.get_path_profile(), Point(0, ballast_h+1.5*rail_h), bld, index);
+ }
+ path_meshes.push_back(mesh);
+ }