diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-08-03 10:07:38 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-08-03 10:07:38 +0300 |
commit | 8078e00c1315a120860a359a6e5c0b415699e485 (patch) | |
tree | 22efb815d6537e7506bc14bbcfe27e2d5cae484e /src/slic3r/GUI/Camera.hpp | |
parent | 77df54947bb4a7eed2055f15faf08f075cc1330c (diff) |
Fixed automatic update of perspective camera
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r-- | src/slic3r/GUI/Camera.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp index 79e87c726..839d0d6cf 100644 --- a/src/slic3r/GUI/Camera.hpp +++ b/src/slic3r/GUI/Camera.hpp @@ -10,10 +10,10 @@ namespace GUI { struct Camera { static const double DefaultDistance; - static double FrustrumMinZSize; + static double FrustrumMinZRange; + static double FrustrumMinNearZ; static double FrustrumZMargin; - static double FovMinDeg; - static double FovMaxDeg; + static double MaxFovDeg; enum EType : unsigned char { @@ -101,6 +101,7 @@ private: // the camera MUST be outside of the bounding box in eye coordinate of the given box std::pair<double, double> calc_tight_frustrum_zs_around(const BoundingBoxf3& box) const; double calc_zoom_to_bounding_box_factor(const BoundingBoxf3& box, int canvas_w, int canvas_h) const; + void set_distance(double distance) const; }; } // GUI |