GCodeViewer -> Added bounding box to fix camera frustum tighting

This commit is contained in:
enricoturri1966 2020-04-17 13:28:25 +02:00
parent 9776d7c5a1
commit 83816afb3f
3 changed files with 12 additions and 3 deletions

View file

@ -97,6 +97,7 @@ public:
private:
VBuffer m_vertices;
std::vector<IBuffer> m_buffers{ static_cast<size_t>(GCodeProcessor::EMoveType::Extrude) };
BoundingBoxf3 m_bounding_box;
unsigned int m_last_result_id{ 0 };
std::vector<double> m_layers_zs;
@ -117,6 +118,7 @@ public:
void reset();
void render() const;
const BoundingBoxf3& get_bounding_box() const { return m_bounding_box; }
const std::vector<double>& get_layers_zs() const { return m_layers_zs; };
EViewType get_view_type() const { return m_view_type; }