mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 02:45:58 +08:00
Fixed ported code of PerimeterGenerator
This commit is contained in:
parent
790dbfe9a8
commit
2df750a9c9
@ -93,7 +93,7 @@ PerimeterGenerator::process()
|
|||||||
for (ExPolygons::const_iterator ex = expp.begin(); ex != expp.end(); ++ex)
|
for (ExPolygons::const_iterator ex = expp.begin(); ex != expp.end(); ++ex)
|
||||||
ex->medial_axis(ext_pwidth + ext_pspacing, min_width, &pp);
|
ex->medial_axis(ext_pwidth + ext_pspacing, min_width, &pp);
|
||||||
|
|
||||||
double threshold = ext_pwidth * ext_pwidth;
|
double threshold = ext_pwidth * 2;
|
||||||
for (Polylines::const_iterator p = pp.begin(); p != pp.end(); ++p) {
|
for (Polylines::const_iterator p = pp.begin(); p != pp.end(); ++p) {
|
||||||
if (p->length() > threshold) {
|
if (p->length() > threshold) {
|
||||||
thin_walls.push_back(*p);
|
thin_walls.push_back(*p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user