Skip to content

Commit 7fc615e

Browse files
committed
Adhere to max resolution setting rather than absolute minimum.
We don't have to do the whole simplify thing here, since all points will be on a single line anyway -- maybe this is too big (I'd argue not, since this _is_ what the user asked for, though maybe you could say 'inter'line isn't the same), but _just_ using the 'any points within 5 micron are the same' rule here is not even close to enough to prevent zits. done as part of CURA-12774 -- plz test carefully, this might change a bunch of things
1 parent 3afd632 commit 7fc615e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LayerPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ void LayerPlan::addWallLine(
925925
double distance_to_bridge_start,
926926
const bool travel_to_z)
927927
{
928-
constexpr coord_t min_line_len = 5; // we ignore lines less than 5um long
928+
const coord_t min_line_len = settings.get<coord_t>("meshfix_maximum_resolution"); // all points will be on the line anyway, so there is no deviation to take into account
929929
constexpr double acceleration_segment_len = MM2INT(1); // accelerate using segments of this length
930930
constexpr double acceleration_factor = 0.75; // must be < 1, the larger the value, the slower the acceleration
931931
constexpr bool spiralize = false;

0 commit comments

Comments
 (0)