diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-11-28 16:18:24 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-11-28 16:18:24 +0300 |
commit | ddd1df155249a92d41fb35dba433b458e227d0fe (patch) | |
tree | 68441136e05fd503213939ee4b38551e982ee46a /src/slic3r/GUI/Camera.hpp | |
parent | bd1ee8ee4ad684b147244c64a79a1233e756d878 (diff) |
ENABLE_THUMBNAIL_GENERATOR -> render printbed into thumbnails
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r-- | src/slic3r/GUI/Camera.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp index 0674409aa..6cd1b75a5 100644 --- a/src/slic3r/GUI/Camera.hpp +++ b/src/slic3r/GUI/Camera.hpp @@ -95,7 +95,9 @@ public: void apply_viewport(int x, int y, unsigned int w, unsigned int h) const; void apply_view_matrix() const; - void apply_projection(const BoundingBoxf3& box) const; + // Calculates and applies the projection matrix tighting the frustrum z range around the given box. + // If larger z span is needed, pass the desired values of near and far z (negative values are ignored) + void apply_projection(const BoundingBoxf3& box, double near_z = -1.0, double far_z = -1.0) const; #if ENABLE_THUMBNAIL_GENERATOR void zoom_to_box(const BoundingBoxf3& box, int canvas_w, int canvas_h, double margin_factor = DefaultZoomToBoxMarginFactor); |