gcode decimation program by DaveD 3d model
3dmdb logo
Thingiverse
gcode decimation program by DaveD

gcode decimation program by DaveD

by Thingiverse
Last crawled date: 4 years, 1 month ago
Been tortured lately with STLs that make gcode with too much detail to print. Little 3mm holes with 96 sides, etc.
This is a program Thing that parses gcode files and comments out line segments which are too close together. Default is to make things at least 0.25mm apart but this can be changed via a command line option.
Skeinview before/after images attached show the result.
V1: On the one with the bolt hole with the V1 label, note that I had the program too aggressive and it removed some possibly-important bits; the fill lines (red, just up/left of center) are now zig-zag instead of squared off and one of the perimeter lines (purple, 4 of them top/right) overlaps more of the infill than it normally would. (edit: arg.. v1 picture has before on the left, bottom has before on the right)
V2: Mostly fixed or at least lessened the zig-zag and perimeter problems that V1 had. It now allows a short line if the next command is not a G1 or if it's a G1 that goes (by default) 3x the min distance. You can change this "long distance min threshold" via the -l option.

Tags