Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Slicing Namespace Reference

Functions

coordf_t min_layer_height_from_nozzle (const DynamicPrintConfig &print_config, int idx_nozzle)
 
coordf_t max_layer_height_from_nozzle (const DynamicPrintConfig &print_config, int idx_nozzle)
 

Function Documentation

◆ max_layer_height_from_nozzle()

coordf_t Slic3r::Slicing::max_layer_height_from_nozzle ( const DynamicPrintConfig print_config,
int  idx_nozzle 
)
54{
55 coordf_t min_layer_height = min_layer_height_from_nozzle(print_config, idx_nozzle);
56 coordf_t max_layer_height = print_config.opt_float("max_layer_height", idx_nozzle - 1);
57 coordf_t nozzle_dmr = print_config.opt_float("nozzle_diameter", idx_nozzle - 1);
58 return std::max(min_layer_height, (max_layer_height == 0.) ? (0.75 * nozzle_dmr) : max_layer_height);
59}
double & opt_float(const t_config_option_key &opt_key)
Definition Config.hpp:2281
double coordf_t
Definition GUI_ObjectList.hpp:36
coordf_t min_layer_height_from_nozzle(const PrintConfig &print_config, int idx_nozzle)
Definition Slicing.cpp:28

References Slic3r::min_layer_height_from_nozzle(), and Slic3r::ConfigBase::opt_float().

+ Here is the call graph for this function:

◆ min_layer_height_from_nozzle()

coordf_t Slic3r::Slicing::min_layer_height_from_nozzle ( const DynamicPrintConfig print_config,
int  idx_nozzle 
)
46{
47 coordf_t min_layer_height = print_config.opt_float("min_layer_height", idx_nozzle - 1);
48 return (min_layer_height == 0.) ? MIN_LAYER_HEIGHT_DEFAULT : std::max(MIN_LAYER_HEIGHT, min_layer_height);
49}
static const coordf_t MIN_LAYER_HEIGHT_DEFAULT
Definition Slicing.cpp:25

References Slic3r::MIN_LAYER_HEIGHT, Slic3r::MIN_LAYER_HEIGHT_DEFAULT, and Slic3r::ConfigBase::opt_float().

Referenced by Slic3r::PresetHints::top_bottom_shell_thickness_explanation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: