S3D creates the same G-Code line multiple times
Posted: Mon May 23, 2016 1:31 pm
While working on a G-Code converter I noticed that S3D seems to create pointless G-Code or even repeats the very same line of G-Code up to three times.
I first stumbled over this in an STL which had some issues but even after I fixed them with Meshmixer, I observed stuff like this:
And it's not only exact duplications, but also other fishy commands where the extrusion value is either not increased at all or by ridiculously small amounts:
I then implemented a detector for identical coordinates in my converter and tested it with GCode created for the official 3DBenchy STL model.
I was surprised to see >500 warnings about identical coordinates. And I didn't even check for identical extrusion values or coordinate/extrusion changes that are much too small to be sensible.
So is this a known issue?
I first stumbled over this in an STL which had some issues but even after I fixed them with Meshmixer, I observed stuff like this:
Code: Select all
G1 X46.698 Y29.356 E16807.1386
G1 X47.136 Y28.504 E16807.1546
G1 X47.136 Y28.504 E16807.1546 <- exactly the same line repeated again
G1 X47.191 Y28.497 E16807.1555
Code: Select all
G1 X84.353 Y36.603 E53.1799
G1 X84.354 Y36.604 E53.1799 <- exactly the same extrude value, so it should be either G0 or G1 without E
G1 X84.373 Y36.625 E53.1823
G1 X84.373 Y36.625 E53.1824 <- very same coordinates with a 100nm (!) extrusion - fishy
I was surprised to see >500 warnings about identical coordinates. And I didn't even check for identical extrusion values or coordinate/extrusion changes that are much too small to be sensible.
So is this a known issue?