mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 11:07:40 +00:00
ENH: using shared area for fillbeds when obj is small
when obj is small, it uses the full build volume to compute the empty cell we need to use the shared one jira: STUDIO-9583 Change-Id: I4cc183df38e054a7b94579637a49168c2fb77992 (cherry picked from commit fea423cdad4ee1a24c077cfeed99962e89953d5b) (cherry picked from commit 06d483ee462f6b1a7a3f39805c81ac0b6f0dfcca)
This commit is contained in:
@@ -401,15 +401,7 @@ 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 = 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;
|
||||
}
|
||||
BoundingBoxf3 get_build_volume(bool use_share = false);
|
||||
|
||||
const std::vector<BoundingBoxf3>& get_exclude_areas() { return m_exclude_bounding_box; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user