/* $Id$
This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
{
private:
Catalogue3D &catalogue;
- Msp::GL::Mesh mesh;
- Msp::GL::Object object;
+ Msp::GL::Mesh *mesh;
+ Msp::GL::Object *object;
std::vector<Msp::GL::Mesh *> path_meshes;
- std::vector<Point> border;
+ std::vector<Vector> border;
float min_z;
float max_z;
TrackType3D(Catalogue3D &, const TrackType &);
~TrackType3D();
- void get_bounds(float, Point &, Point &) const;
- const Msp::GL::Object &get_object() const { return object; }
+ void get_bounds(float, Vector &, Vector &) const;
+ const Msp::GL::Object &get_object() const { return *object; }
const Msp::GL::Mesh &get_path_mesh(unsigned) const;
private:
- void build_part(const TrackPart &, const Profile &, const Point &, Msp::GL::MeshBuilder &, unsigned &);
+ void build_part(const TrackPart &, const Profile &, const Vector &, bool, Msp::GL::MeshBuilder &, unsigned &);
};
} // namespace R2C2