Skip to content
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

[Feature Request] Use PrusaSlicer's objects_info to render outline of objects being printed #82

Open
BlueFyre opened this issue Apr 17, 2024 · 0 comments

Comments

@BlueFyre
Copy link

BlueFyre commented Apr 17, 2024

Feature request to render the polygons recently added in PrusaSlicer 2.7.3-alpha1. From the release notes:
Metadata of binary G-code have a new item named objects_info, which lists all the objects in the print and their boundary polygons. The same info was added into the comments at the end of ASCII G-codes.

Example of use provided by Prusa blog from PrusaConnect:
image

Some gcode I sliced:
3DBenchy_0.4n_0.2mm_PLA_MK4IS_38m.zip

Relevant portion:
; objects_info = {"objects":[{"name":"3DBenchy","polygon":[[138.297,81.963],[141.757,82.164],[144.992,82.682],[145.592,82.956],[146.069,83.353],[146.452,83.900],[146.674,84.537],[147.107,87.288],[147.322,90.249],[147.276,93.246],[146.965,96.206],[146.441,98.907],[145.664,101.621],[144.703,104.130],[143.391,106.803],[142.214,108.748],[140.771,110.402],[138.516,112.667],[135.993,114.826],[128.455,120.240],[123.482,123.926],[118.065,128.114],[112.738,132.409],[112.227,132.669],[111.645,132.785],[111.091,132.742],[110.531,132.539],[110.071,132.208],[97.046,119.178],[96.709,118.666],[96.527,118.040],[96.549,117.363],[96.779,116.736],[101.882,110.347],[105.566,105.559],[114.636,93.098],[117.287,90.092],[118.661,88.745],[120.336,87.261],[121.991,86.190],[124.252,85.010],[126.379,84.100],[128.715,83.306],[131.108,82.695],[133.336,82.297],[135.838,82.034]]}]}

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant