mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Render custom bed textures in svg format on prusa beds
This commit is contained in:
parent
af3cb890d1
commit
f61d43de07
4 changed files with 56 additions and 19 deletions
|
@ -87,6 +87,7 @@ public:
|
|||
private:
|
||||
EType m_type;
|
||||
Pointfs m_shape;
|
||||
std::string m_custom_texture;
|
||||
mutable BoundingBoxf3 m_bounding_box;
|
||||
mutable BoundingBoxf3 m_extended_bounding_box;
|
||||
Polygon m_polygon;
|
||||
|
@ -122,7 +123,7 @@ public:
|
|||
|
||||
const Pointfs& get_shape() const { return m_shape; }
|
||||
// Return true if the bed shape changed, so the calee will update the UI.
|
||||
bool set_shape(const Pointfs& shape);
|
||||
bool set_shape(const Pointfs& shape, const std::string& custom_texture);
|
||||
|
||||
const BoundingBoxf3& get_bounding_box(bool extended) const { return extended ? m_extended_bounding_box : m_bounding_box; }
|
||||
bool contains(const Point& point) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue