-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Comments
Don't believe we have. That would be under libslic3r's src.
https://github.com/slic3r/Slic3r/tree/merill-merge/src/libslic3r
You want the Format classes, things that touch TriangleMesh.
Color in the UI isn't used in slicing (it's a Material property).
You probably should subdivide the mesh into its components based on color
if you wanted to get this through with the least amount of pain and
suffering.
…On Thu, Apr 7, 2022, 3:35 PM balloonhotair ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#5137>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAHYCTJG35RDJQ74ALJV4LVD5BJ5ANCNFSM5S2RD6BQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
You should target that branch for your changes.
…On Thu, Apr 7, 2022, 4:08 PM Joe Lenox ***@***.***> wrote:
Don't believe we have. That would be under libslic3r's src.
https://github.com/slic3r/Slic3r/tree/merill-merge/src/libslic3r
You want the Format classes, things that touch TriangleMesh.
Color in the UI isn't used in slicing (it's a Material property).
You probably should subdivide the mesh into its components based on color
if you wanted to get this through with the least amount of pain and
suffering.
On Thu, Apr 7, 2022, 3:35 PM balloonhotair ***@***.***>
wrote:
> 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.
>
> —
> Reply to this email directly, view it on GitHub
> <#5137>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAHYCTJG35RDJQ74ALJV4LVD5BJ5ANCNFSM5S2RD6BQ>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Thanks you for giving me a starting point. |
check the GLGizmoMmuSegmentation::update_model_object() 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
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.
The text was updated successfully, but these errors were encountered: