Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-03-28 14:25:10 +0300
committerbubnikv <bubnikv@gmail.com>2017-03-28 14:25:10 +0300
commit9f7a5c7a6f93e3383c596e18c7258cfc96bf7262 (patch)
tree1573e46b8470df69121ead09a4ec55585f8e8c0d /xs/src/libslic3r/Flow.hpp
parent640698d28bc66a248199be95f70e2eed26bff6a8 (diff)
Some beautification and C++11 adaptation.
Diffstat (limited to 'xs/src/libslic3r/Flow.hpp')
-rw-r--r--xs/src/libslic3r/Flow.hpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/xs/src/libslic3r/Flow.hpp b/xs/src/libslic3r/Flow.hpp
index a3ff4b6b6..118273067 100644
--- a/xs/src/libslic3r/Flow.hpp
+++ b/xs/src/libslic3r/Flow.hpp
@@ -45,15 +45,9 @@ public:
float spacing() const;
float spacing(const Flow &other) const;
double mm3_per_mm() const;
- coord_t scaled_width() const {
- return scale_(this->width);
- };
- coord_t scaled_spacing() const {
- return scale_(this->spacing());
- };
- coord_t scaled_spacing(const Flow &other) const {
- return scale_(this->spacing(other));
- };
+ coord_t scaled_width() const { return coord_t(scale_(this->width)); };
+ coord_t scaled_spacing() const { return coord_t(scale_(this->spacing())); };
+ coord_t scaled_spacing(const Flow &other) const { return coord_t(scale_(this->spacing(other))); };
static Flow new_from_config_width(FlowRole role, const ConfigOptionFloatOrPercent &width, float nozzle_diameter, float height, float bridge_flow_ratio);
static Flow new_from_spacing(float spacing, float nozzle_diameter, float height, bool bridge);