mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 10:47:16 +00:00
NEW:add "obj preview thumnailData" function
jira: none Change-Id: I688c2f05bf85fca376418115acddb5066ef980eb (cherry picked from commit 16f2b2bcb5fd157f25aa7012dabd99a8d31aec07) (cherry picked from commit 7cc21b5e9745a84d75ea13b66f5653520bb1cba3)
This commit is contained in:
@@ -31,7 +31,18 @@ struct Camera
|
||||
Perspective,
|
||||
Num_types
|
||||
};
|
||||
|
||||
enum class ViewAngleType : unsigned char {
|
||||
Iso = 0,
|
||||
Top_Front,
|
||||
Left,
|
||||
Right,
|
||||
Top,
|
||||
Bottom,
|
||||
Front,
|
||||
Rear,
|
||||
Count_ViewAngleType,
|
||||
Top_Plate,//for 3mf and Skip parts
|
||||
};
|
||||
bool requires_zoom_to_bed{ false };
|
||||
//BBS
|
||||
bool requires_zoom_to_volumes{ false };
|
||||
@@ -90,7 +101,7 @@ public:
|
||||
|
||||
|
||||
void select_view(const std::string& direction);
|
||||
|
||||
void select_view(ViewAngleType type);
|
||||
const std::array<int, 4>& get_viewport() const { return m_viewport; }
|
||||
const Transform3d& get_view_matrix() const { return m_view_matrix; }
|
||||
const Transform3d& get_projection_matrix() const { return m_projection_matrix; }
|
||||
|
||||
Reference in New Issue
Block a user