OrcaSlicer latest
OrcaSlicer
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 )
64{
65 coordf_t min_layer_height = min_layer_height_from_nozzle(print_config, idx_nozzle);
66 coordf_t max_layer_height = print_config.opt_float("max_layer_height", idx_nozzle - 1);
67 coordf_t nozzle_dmr = print_config.opt_float("nozzle_diameter", idx_nozzle - 1);
68 return std::max(min_layer_height, (max_layer_height == 0.) ? (0.75 * nozzle_dmr) : max_layer_height);
69}
double & opt_float(const t_config_option_key &opt_key)
Definition Config.hpp:3047
coordf_t min_layer_height_from_nozzle(const DynamicPrintConfig &print_config, int idx_nozzle)
Definition Slicing.cpp:55
double coordf_t
Definition GUI_ObjectList.hpp:46

References Slic3r::min_layer_height_from_nozzle(), and Slic3r::DynamicConfig::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 )
56{
57 coordf_t min_layer_height = print_config.opt_float("min_layer_height", idx_nozzle - 1);
58 return (min_layer_height == 0.) ? MIN_LAYER_HEIGHT_DEFAULT : std::max(MIN_LAYER_HEIGHT, min_layer_height);
59}
static const coordf_t MIN_LAYER_HEIGHT_DEFAULT
Definition Slicing.cpp:34
static const coordf_t MIN_LAYER_HEIGHT
Definition Slicing.cpp:33

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

Here is the call graph for this function: