mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 05:12:27 +00:00
ENH: enhance some functions of the wipe_tower
1.Add automatic calculation of the wipe_tower's brim width by height; 2.modify the min_depth_per_height and the default ridwidth jira: none Change-Id: Idd96bc90e8e631aa8481b559e1e9fec24c6b822f (cherry picked from commit 4dd4e9e12c02d945a0ac3fd2020f75313c5b2cc9)
This commit is contained in:
@@ -5313,10 +5313,12 @@ GLCanvas3D::WipeTowerInfo GLCanvas3D::get_wipe_tower_info(int plate_idx) const
|
||||
float wt_brim_width = preset.config.opt_float("prime_tower_brim_width");
|
||||
|
||||
const BoundingBoxf3& bb = vol->bounding_box();
|
||||
if (wt_brim_width < 0) wt_brim_width = WipeTower::get_auto_brim_by_height((float)bb.max.z());
|
||||
wti.m_bb = BoundingBoxf{to_2d(bb.min), to_2d(bb.max)};
|
||||
wti.m_bb.offset(wt_brim_width);
|
||||
|
||||
float brim_width = wxGetApp().preset_bundle->prints.get_edited_preset().config.opt_float("prime_tower_brim_width");
|
||||
if (brim_width < 0) brim_width = WipeTower::get_auto_brim_by_height((float) bb.max.z());
|
||||
wti.m_bb.offset((brim_width));
|
||||
|
||||
// BBS: the wipe tower pos might be outside bed
|
||||
|
||||
Reference in New Issue
Block a user