mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-09-17 22:43:12 +08:00
#306 also ignore thinwall/gapfill when asked for min_mm3_per_mm from loops & other multi-paths
This commit is contained in:
parent
2440cefd3b
commit
27aa82c94f
@ -258,7 +258,8 @@ double ExtrusionLoop::min_mm3_per_mm() const
|
||||
{
|
||||
double min_mm3_per_mm = std::numeric_limits<double>::max();
|
||||
for (const ExtrusionPath &path : this->paths)
|
||||
min_mm3_per_mm = std::min(min_mm3_per_mm, path.mm3_per_mm);
|
||||
if (path.role() != erGapFill && path.role() != erThinWall && path.role() != erMilling)
|
||||
min_mm3_per_mm = std::min(min_mm3_per_mm, path.mm3_per_mm);
|
||||
return min_mm3_per_mm;
|
||||
}
|
||||
|
||||
|
@ -319,7 +319,8 @@ public:
|
||||
double min_mm3_per_mm() const override {
|
||||
double min_mm3_per_mm = std::numeric_limits<double>::max();
|
||||
for (const THING &entity : this->paths)
|
||||
min_mm3_per_mm = std::min(min_mm3_per_mm, entity.min_mm3_per_mm());
|
||||
if (entity.role() != erGapFill && entity.role() != erThinWall && entity.role() != erMilling)
|
||||
min_mm3_per_mm = std::min(min_mm3_per_mm, entity.min_mm3_per_mm());
|
||||
return min_mm3_per_mm;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user