mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-24 21:35:03 -07:00
ENH: auto adapt distance in arrangement
JIRA: STUDIO-4408 1. if min_obj_distance is 0, use auto mode 2. normal support, 5mm gap, tree support, 22mm gap, no support, 0.1mm gap Change-Id: I906ccf267bef1f33a946572614d658fd50cfcda3 (cherry picked from commit 771efc935da625d8faa4cc5b77fedc5055f93c6c)
This commit is contained in:
parent
5e912dc541
commit
a939c6e434
5 changed files with 14 additions and 10 deletions
|
|
@ -2614,10 +2614,7 @@ int CLI::run(int argc, char **argv)
|
|||
arrange_cfg.clearance_height_to_lid = height_to_lid;
|
||||
arrange_cfg.cleareance_radius = cleareance_radius;
|
||||
arrange_cfg.printable_height = print_height;
|
||||
if (arrange_cfg.is_seq_print)
|
||||
arrange_cfg.min_obj_distance = std::max(arrange_cfg.min_obj_distance, scaled(arrange_cfg.cleareance_radius + 0.001)); // +0.001mm to avoid clearance check fail due to rounding error
|
||||
else
|
||||
arrange_cfg.min_obj_distance = scaled(22.0);
|
||||
arrange_cfg.min_obj_distance = 0;
|
||||
|
||||
if (auto printer_structure_opt = m_print_config.option<ConfigOptionEnum<PrinterStructure>>("printer_structure")) {
|
||||
arrange_cfg.align_to_y_axis = (printer_structure_opt->value == PrinterStructure::psI3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue