]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/tracktype.h
Add a pathfinder function to Route
[r2c2.git] / source / 3d / tracktype.h
index ab85d49ce88f1ba30bfe02d2975c917de65ad37d..980e7b82c843a483ffcf34083117119a0ab57f0b 100644 (file)
@@ -24,6 +24,7 @@ private:
        const Catalogue3D &catalogue;
        Msp::GL::Mesh ballast_mesh;
        Msp::GL::Mesh rail_mesh;
+       std::vector<Msp::GL::Mesh *> path_meshes;
        std::vector<Point> border;
        float min_z;
        float max_z;
@@ -32,12 +33,12 @@ public:
        TrackType3D(const Catalogue3D &, const TrackType &);
 
        void get_bounds(float, Point &, Point &) const;
+       const Msp::GL::Mesh &get_path_mesh(unsigned) const;
 
        virtual void render(const Msp::GL::Tag &) const;
 
 private:
        void build_part(const TrackPart &, const Profile &, const Point &, Msp::GL::MeshBuilder &, unsigned &);
-       //void optimize_border();
 };
 
 } // namespace Marklin