I'm working on meshing a 3d Solid object by using RealDWG C++ API.
I use acdbGetObjectMesh() method to mesh a 3d Solid object. I can get vertices, materials for these meshes. However, I couldn't find a way to get texture UV coordinates for mesh vertices.
I've been stuck on it for a couple of days. Could someone help me on it?
Thanks,
Jeffrey
Solved! Go to Solution.
Solved by Balaji_Ram. Go to Solution.
I made a mistake.
It's not "I can get vertices, materials for these meshes."
It should be "I can get vertices, materials for faces of the mesh."
Hi Jeff,
Sorry, it is not possible at present to get the UV coordinates of the texture associated with a solid.
If you create a AcDbSubDMesh and map a texture to it, you can then retrieve the UV coordinates of the Level-0 mesh
using AcDbSubDMesh::getVertexTextureArray.
Regards,
Balaji
I can't remember how I fixed it then. It's been such a long time.
Good luck,
Jeffrey