Skip to content

Commit

Permalink
warning
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Oct 15, 2024
1 parent 98be852 commit f72d362
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/libslic3r/ExtrusionEntity.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,8 @@ struct HasThisRoleVisitor : public HasRoleVisitor{
//call simplify for all paths.
class ConfigOptionFloatOrPercent;
class SimplifyVisitor : public ExtrusionVisitorRecursive {
public:
using ExtrusionVisitorRecursive::use;
bool m_use_arc_fitting;
coordf_t m_scaled_resolution;
const ConfigOptionFloatOrPercent* m_arc_fitting_tolearance;
Expand All @@ -649,6 +651,7 @@ class SimplifyVisitor : public ExtrusionVisitorRecursive {
};
class GetPathsVisitor : public ExtrusionVisitorRecursive {
public:
using ExtrusionVisitorRecursive::use;
std::vector<ExtrusionPath*> paths;
std::vector<ExtrusionPath3D*> paths3D;
virtual void use(ExtrusionPath& path) override {
Expand All @@ -660,6 +663,8 @@ class GetPathsVisitor : public ExtrusionVisitorRecursive {
};

class ExtrusionVolume : public ExtrusionVisitorRecursiveConst {
public:
using ExtrusionVisitorRecursiveConst::use;
bool _with_gap_fill = true;
public:
double volume = 0; //unscaled
Expand All @@ -672,8 +677,9 @@ class ExtrusionVolume : public ExtrusionVisitorRecursiveConst {
};

class ExtrusionModifyFlow : public ExtrusionVisitorRecursive {
double _flow_mult = 1.;
public:
using ExtrusionVisitorRecursive::use;
double _flow_mult = 1.;
ExtrusionModifyFlow(double flow_mult) : _flow_mult(flow_mult) {}
void use(ExtrusionPath &path) override { path.mm3_per_mm *= _flow_mult; path.width *= _flow_mult; }
void use(ExtrusionPath3D &path3D) override { path3D.mm3_per_mm *= _flow_mult; path3D.width *= _flow_mult; }
Expand All @@ -683,6 +689,8 @@ class ExtrusionModifyFlow : public ExtrusionVisitorRecursive {

#if _DEBUG
struct LoopAssertVisitor : public ExtrusionVisitorRecursiveConst {
public:
using ExtrusionVisitorRecursiveConst::use;
virtual void default_use(const ExtrusionEntity& entity) override {};
virtual void use(const ExtrusionPath &path) override { assert(path.length() > SCALED_EPSILON); }
virtual void use(const ExtrusionLoop &loop) override {
Expand Down

0 comments on commit f72d362

Please sign in to comment.