Follow-up to 199dc121a5
Quantization of G-code export to achieve more precise extrusion width control. Fix of wiping.
This commit is contained in:
parent
199dc121a5
commit
5ed364910b
@ -174,7 +174,7 @@ namespace Slic3r {
|
|||||||
gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Wipe_Start) + "\n";
|
gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Wipe_Start) + "\n";
|
||||||
auto end = this->path.points.end();
|
auto end = this->path.points.end();
|
||||||
bool done = false;
|
bool done = false;
|
||||||
for (; it != end; ++ it) {
|
for (; it != end && ! done; ++ it) {
|
||||||
p = gcodegen.point_to_gcode_quantized(*it);
|
p = gcodegen.point_to_gcode_quantized(*it);
|
||||||
double segment_length = (p - prev).norm();
|
double segment_length = (p - prev).norm();
|
||||||
double dE = GCodeFormatter::quantize_e(xy_to_e * segment_length);
|
double dE = GCodeFormatter::quantize_e(xy_to_e * segment_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user