herp herp derp static methods.

This commit is contained in:
Joseph Lenox 2018-01-05 20:14:30 -06:00
parent 54e86b7307
commit b6209c4ee3
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ Flow::_bridge_width(float nozzle_diameter, float bridge_flow_ratio) {
/* This static method returns a sane extrusion width default. */ /* This static method returns a sane extrusion width default. */
float float
Flow::_auto_width(FlowRole role, float nozzle_diameter, float height) const { Flow::_auto_width(FlowRole role, float nozzle_diameter, float height) {
// here we calculate a sane default by matching the flow speed (at the nozzle) and the feed rate // here we calculate a sane default by matching the flow speed (at the nozzle) and the feed rate
// shape: rectangle with semicircles at the ends // shape: rectangle with semicircles at the ends
float width = ((nozzle_diameter*nozzle_diameter) * PI + (height*height) * (4.0 - PI)) / (4.0 * height); float width = ((nozzle_diameter*nozzle_diameter) * PI + (height*height) * (4.0 - PI)) / (4.0 * height);

View File

@ -70,7 +70,7 @@ class Flow
/// Calculate a relatively sane extrusion width, based on height and nozzle diameter. /// Calculate a relatively sane extrusion width, based on height and nozzle diameter.
/// Algorithm used does not play nice with layer heights < 0.1mm. /// Algorithm used does not play nice with layer heights < 0.1mm.
/// To avoid extra headaches, min and max are capped at 105% and 125% of nozzle diameter. /// To avoid extra headaches, min and max are capped at 105% and 125% of nozzle diameter.
static float _auto_width(FlowRole role, float nozzle_diameter, float height) const; static float _auto_width(FlowRole role, float nozzle_diameter, float height);
static float _width_from_spacing(float spacing, float nozzle_diameter, float height, bool bridge); static float _width_from_spacing(float spacing, float nozzle_diameter, float height, bool bridge);
}; };