mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
C++ supports sketched, but not finalized yet. Slic3r is still using
the old Perl supports, but this time with the C++ fillers.
This commit is contained in:
parent
8f40d9b34e
commit
7d7f093120
19 changed files with 602 additions and 557 deletions
|
@ -77,10 +77,11 @@ Flow::mm3_per_mm() const {
|
|||
}
|
||||
|
||||
/* This static method returns bridge width for a given nozzle diameter. */
|
||||
float
|
||||
Flow::_bridge_width(float nozzle_diameter, float bridge_flow_ratio) {
|
||||
if (bridge_flow_ratio == 1) return nozzle_diameter; // optimization to avoid sqrt()
|
||||
return sqrt(bridge_flow_ratio * (nozzle_diameter*nozzle_diameter));
|
||||
float Flow::_bridge_width(float nozzle_diameter, float bridge_flow_ratio) {
|
||||
return (bridge_flow_ratio == 1.) ?
|
||||
// optimization to avoid sqrt()
|
||||
nozzle_diameter :
|
||||
sqrt(bridge_flow_ratio) * nozzle_diameter;
|
||||
}
|
||||
|
||||
/* This static method returns a sane extrusion width default. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue