mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Combined infill max layer height (optional) parameter (#6401)
* Combined infill max layer height parameter * Combine sparse infill - allow % over nozzle diameter too. * Updated defaults and tooltips * Update PrintConfig.cpp
This commit is contained in:
parent
c179a57725
commit
2c5478ee96
7 changed files with 28 additions and 3 deletions
|
@ -1066,6 +1066,7 @@ bool PrintObject::invalidate_state_by_config_options(
|
|||
} else if (
|
||||
opt_key == "interface_shells"
|
||||
|| opt_key == "infill_combination"
|
||||
|| opt_key == "infill_combination_max_layer_height"
|
||||
|| opt_key == "bottom_shell_thickness"
|
||||
|| opt_key == "top_shell_thickness"
|
||||
|| opt_key == "minimum_sparse_infill_area"
|
||||
|
@ -3418,6 +3419,11 @@ void PrintObject::combine_infill()
|
|||
double nozzle_diameter = std::min(
|
||||
this->print()->config().nozzle_diameter.get_at(region.config().sparse_infill_filament.value - 1),
|
||||
this->print()->config().nozzle_diameter.get_at(region.config().solid_infill_filament.value - 1));
|
||||
|
||||
//Orca: Limit combination of infill to up to infill_combination_max_layer_height
|
||||
const double infill_combination_max_layer_height = region.config().infill_combination_max_layer_height.get_abs_value(nozzle_diameter);
|
||||
nozzle_diameter = infill_combination_max_layer_height > 0 ? std::min(infill_combination_max_layer_height, nozzle_diameter) : nozzle_diameter;
|
||||
|
||||
// define the combinations
|
||||
std::vector<size_t> combine(m_layers.size(), 0);
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue