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:
zhou.xu
2024-11-05 14:52:12 +08:00
committed by Noisyfox
parent d4d86a5966
commit 926c22b797
13 changed files with 492 additions and 162 deletions

View File

@@ -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; }