Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
Could you explain to me how to get all the triangles (vertices and indices and normal vectors if any) from the polygonal_mesh structure?
I assume that data index is a pointer to the information I need (facet_ent?), but I can't find any documentation about it.
There is no facet_ent struct in the SDK:
__int64 data_index; //!< index in the the polygonal_mesh database map (-1 = not valid)
//!< Use this index with ???? to load facet_ent data for use
I found a function Cnc::Tessellation::TessellateEntity.
This function works, but the problem is that the vertices it returns are duplicated - the indices are unique for each triangle instead of being the same for common vertices.
Of course, I can fix this with post processing, but I wonder if there is a better way.
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.