mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
Some beautification and C++11 adaptation.
This commit is contained in:
parent
640698d28b
commit
9f7a5c7a6f
5 changed files with 69 additions and 116 deletions
|
@ -2,21 +2,6 @@
|
|||
|
||||
namespace Slic3r {
|
||||
|
||||
PrintRegion::PrintRegion(Print* print)
|
||||
: _print(print)
|
||||
{
|
||||
}
|
||||
|
||||
PrintRegion::~PrintRegion()
|
||||
{
|
||||
}
|
||||
|
||||
Print*
|
||||
PrintRegion::print()
|
||||
{
|
||||
return this->_print;
|
||||
}
|
||||
|
||||
Flow
|
||||
PrintRegion::flow(FlowRole role, double layer_height, bool bridge, bool first_layer, double width, const PrintObject &object) const
|
||||
{
|
||||
|
@ -65,4 +50,11 @@ PrintRegion::flow(FlowRole role, double layer_height, bool bridge, bool first_la
|
|||
return Flow::new_from_config_width(role, config_width, nozzle_diameter, layer_height, bridge ? (float)this->config.bridge_flow_ratio : 0.0);
|
||||
}
|
||||
|
||||
coordf_t PrintRegion::nozzle_dmr_avg(const PrintConfig &print_config) const
|
||||
{
|
||||
return (print_config.nozzle_diameter.get_at(this->config.perimeter_extruder.value - 1) +
|
||||
print_config.nozzle_diameter.get_at(this->config.infill_extruder.value - 1) +
|
||||
print_config.nozzle_diameter.get_at(this->config.solid_infill_extruder.value - 1)) / 3.;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue