mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-01 04:22:03 +08:00
fix a regression that thumbnail was not rendered properly for delta printers
Fixes #5525
This commit is contained in:
parent
2f265ef083
commit
ae07cf9813
@ -369,17 +369,12 @@ public:
|
|||||||
const BoundingBoxf3& get_bounding_box(bool extended = false) { return extended ? m_extended_bounding_box : m_bounding_box; }
|
const BoundingBoxf3& get_bounding_box(bool extended = false) { return extended ? m_extended_bounding_box : m_bounding_box; }
|
||||||
const BoundingBox get_bounding_box_crd();
|
const BoundingBox get_bounding_box_crd();
|
||||||
BoundingBoxf3 get_plate_box() {return get_build_volume();}
|
BoundingBoxf3 get_plate_box() {return get_build_volume();}
|
||||||
|
// Orca: support non-rectangular bed
|
||||||
BoundingBoxf3 get_build_volume()
|
BoundingBoxf3 get_build_volume()
|
||||||
{
|
{
|
||||||
auto eps=Slic3r::BuildVolume::SceneEpsilon;
|
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 up_point = m_bounding_box.max + Vec3d(eps, eps, m_origin.z() + m_height + eps);
|
||||||
Vec3d low_point = Vec3d(m_origin.x() - eps, m_origin.y() - eps, m_origin.z() - eps);
|
Vec3d low_point = m_bounding_box.min + Vec3d(-eps, -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();
|
|
||||||
}
|
|
||||||
BoundingBoxf3 plate_box(low_point, up_point);
|
BoundingBoxf3 plate_box(low_point, up_point);
|
||||||
return plate_box;
|
return plate_box;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user