OctoPrint icon indicating copy to clipboard operation
OctoPrint copied to clipboard

[Request] Improve preview of files using "scarf joint seam" (orcaslicer & others)

Open jepler opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe.

I've recently started to use the "scarf joint seam" feature of orcaslicer, which can improve the surface finish of many 3d prints.

However, this feature emits XYZE moves which confuse the gcode preview in octoprint, making it report an incorrect number of layers, as well as making the layer-by-layer preview not useful.

Describe the solution you'd like

Octoprint needs to use a different method to analyze gcode files that use scarf join. However, I don't know enough about the internals to have a concrete suggestion.

Describe alternatives you've considered

Many slicers emit special comments to delimit the slicer's idea of a layer. Octoprint could (optionally?) look for these in lieu of what it appears to do now, analyze the Z-heights where extrusion takes place.

Additional context

Reproducer gcode:

benchy-gcode.zip

~~I can provide a gcode file reproducer if needed.~~ I'm using OrcaSlicer 2.1.1 on Linux.

This might also improve gcode visualization of vase mode prints, as well.

jepler avatar Jul 05 '24 01:07 jepler

This is an interesting challenge. I know @JoveToo was one of the last contributors to the GCode Viewer, wonder if he might have some ideas.

jneilliii avatar Jul 05 '24 02:07 jneilliii

Please upload a gcode file from a benchie or something with scarf joint seam.

I will take a look.

JoveToo avatar Jul 05 '24 12:07 JoveToo

I've updated the initial comment with a zipped gcode file that demonstrated the problem.

Model size: 154.79mm × 123.30mm × 48.00mm Estimated layer height: 0.00mm Estimated total print time: 00:49:52 Layers with extrusion: 13327

jepler avatar Jul 05 '24 21:07 jepler