-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layer count differs from slicer's #1155
Comments
One extra layer added by printrun is GCode.append_layer at the end of gcode parsing. |
I don't, but it's been so long since I touched any of that that I'm not certain about it. |
Do not count as a layer a height at which we have (+ or -) extrusion, but no x,y movement. This excludes retraction and priming. Apply the same condition for end layer.
@DivingDuck , can you test layer counting in this branch https://github.com/volconst/Printrun/tree/layer-counts ? |
@kliment , append_layer is probably meant to allow injecting of gcode at the end of the file. |
@volconst, the layer count of this version is correct and I see the behavior you mentioned as well. |
Thank you, @DivingDuck |
You're welcome, and thank you too, @volconst :) |
Hi @volconst and @kliment
can you give me a favor and load the attached gcode file in your latest build and then open the Gcode view?
The file should have a z high of 15mm with 75 layers. Pronterface tells me 77 Layers and Z=15.500mm. In addition the first layer says Layer 1 - Z = 15mm
Pronterface_test.zip
Originally posted by @DivingDuck in #1069 (comment)
The text was updated successfully, but these errors were encountered: