X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftracktype.h;h=8a5123b27ba16b6d8566e95221f486733a19295b;hb=c5f5ec54e81a6a85f911fa1075a0939a7352fbfd;hp=3c06c58d8234047d7b198f2d0f9a68cfb1744f4a;hpb=949b13aae247fa53579ec1cda9142ccc8755acde;p=r2c2.git diff --git a/source/3d/tracktype.h b/source/3d/tracktype.h index 3c06c58..8a5123b 100644 --- a/source/3d/tracktype.h +++ b/source/3d/tracktype.h @@ -22,8 +22,8 @@ class TrackType3D { private: Catalogue3D &catalogue; - Msp::GL::Mesh mesh; - Msp::GL::Object object; + Msp::GL::Mesh *mesh; + Msp::GL::Object *object; std::vector path_meshes; std::vector border; float min_z; @@ -34,11 +34,11 @@ public: ~TrackType3D(); void get_bounds(float, Point &, Point &) const; - const Msp::GL::Object &get_object() const { return object; } + 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 Point &, bool, Msp::GL::MeshBuilder &, unsigned &); }; } // namespace R2C2