aligator / GoSlice

This is an experimental slicer for 3d printing written in Go also usable as modular slicing lib.
Apache License 2.0
100 stars 16 forks source link

too many gcodes for some parts -> need to simplify model? #4

Closed aligator closed 4 years ago

aligator commented 4 years ago

The generated gcode contains several parts which consist of too may small paths, which slow down the print and produces bad quality prints.

Especially on circles / curves this occurs: grafik But it also happens on (mostly) straight lines: grafik

A possible solution may be to simplify / smooth such parts a bit (but not too much as it should still be accurate enough. Currently I have no idea how exactly to do this.

aligator commented 4 years ago

maybe we can fix some of the issues using the buffer of #10

aligator commented 4 years ago

added some simplification / smoothing by using the DouglasPeucker algorithm. It's much better now and the printer doesn't slow down anymore.

It may still need improvements, but for now its ok.