plottertools / vpype-gcode

gcode extension for vpype
MIT License
35 stars 7 forks source link

Add support for layer IDs #13

Closed abey79 closed 3 years ago

abey79 commented 3 years ago

In vpype, layer IDs as used to refer to layers and maybe arbitrary non-zero, positive integers. In particular, they do not need to be consecutive and the read command attempts to honour them according to a well defined heuristic. Since they can be set to an arbitrary value by the user, they can potentially be useful in vpype-gcode's output. This PR adds the formatting keyword layer_id to the layer_start and layer_end elements.

Other minor fixes: