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

Reading color attributes for vertices from obj files #5137

Open
balloonhotair opened this issue Apr 7, 2022 · 4 comments
Open

Reading color attributes for vertices from obj files #5137

balloonhotair opened this issue Apr 7, 2022 · 4 comments

Comments

@balloonhotair
Copy link

Has anyone tried to accessed the color info for the vertices within obj files to create gcode filament changes? Meshlab can take ply files with color attributes for the vertices and save the files as obj with the color info intact so I was looking to see if I can modify the slicer to do the filament changes when producing the gcode. If there is anybody who could point me to the files that read in obj files would be big time saver. I see there is a gcode writer class so that should be the other end of my idea. I did a fair amount of C++ years back so the coding part I know, it is just getting a feel for where all the pieces are in github that I would like to make quicker and anything to be aware of if I do this.

@lordofhyphens
Copy link
Member

lordofhyphens commented Apr 7, 2022 via email

@lordofhyphens
Copy link
Member

lordofhyphens commented Apr 7, 2022 via email

@balloonhotair
Copy link
Author

Thanks you for giving me a starting point.

@supermerill
Copy link
Collaborator

check the GLGizmoMmuSegmentation::update_model_object()
it shows how to set the ModelObject's ModelVolume's mmu_segmentation_facets

I don't 100% understand the code. The data object is a bit cryptic (usage is in TriangleSelector::deserialize, but I don't understand it fully)

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

3 participants