mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
fix a regression that thumbnail was not rendered properly for delta printers
Fixes #5525
This commit is contained in:
parent
2f265ef083
commit
ae07cf9813
1 changed files with 3 additions and 8 deletions
|
@ -369,17 +369,12 @@ public:
|
|||
const BoundingBoxf3& get_bounding_box(bool extended = false) { return extended ? m_extended_bounding_box : m_bounding_box; }
|
||||
const BoundingBox get_bounding_box_crd();
|
||||
BoundingBoxf3 get_plate_box() {return get_build_volume();}
|
||||
// Orca: support non-rectangular bed
|
||||
BoundingBoxf3 get_build_volume()
|
||||
{
|
||||
auto eps=Slic3r::BuildVolume::SceneEpsilon;
|
||||
Vec3d up_point = Vec3d(m_origin.x() + m_width + eps, m_origin.y() + m_depth + eps, m_origin.z() + m_height + eps);
|
||||
Vec3d low_point = Vec3d(m_origin.x() - eps, m_origin.y() - eps, m_origin.z() - eps);
|
||||
if (m_raw_shape.size() > 0) {
|
||||
up_point.x() += m_raw_shape[0].x();
|
||||
up_point.y() += m_raw_shape[0].y();
|
||||
low_point.x() += m_raw_shape[0].x();
|
||||
low_point.y() += m_raw_shape[0].y();
|
||||
}
|
||||
Vec3d up_point = m_bounding_box.max + Vec3d(eps, eps, m_origin.z() + m_height + eps);
|
||||
Vec3d low_point = m_bounding_box.min + Vec3d(-eps, -eps, m_origin.z() - eps);
|
||||
BoundingBoxf3 plate_box(low_point, up_point);
|
||||
return plate_box;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue