gcode-preview icon indicating copy to clipboard operation
gcode-preview copied to clipboard

Parser metadata library

Open sophiedeziel opened this issue 1 year ago • 1 comments

GCode comments metadata from the slicer can provide valuable information to the library. However, slicers format the comments differently.

I'm suggesting a first implementation that would only take care of the layers split. Right now, the parser uses a tolerance algorithm based on z changes. I'm suggesting a library for prusa and/or cura that would parse the ;LAYER_CHANGE (prusa slicer) and ;LAYER:2 (Cura) comments when available and fallback to the tolerance algorithm only when the metadata is not available.

Eventually, we'll want the line types (outer wall, infill, etc) for features around those!

sophiedeziel avatar Jun 03 '24 00:06 sophiedeziel

see also #280

remcoder avatar Jul 25 '25 18:07 remcoder