Hello!
I'm currently working on an importer using C++. I want to support importing meshes with faces that can be tris, quads, and ngons.
I'm currently able to construct the mesh by using the Modeling class and constructing each face as an "ngon" by doing the following:
modeling->CreateNgon(polyObj, faceIndexList.data(), faceIndexList.size());
where faceIndexList contains a list of points that make up that face.
The final thing I need to do is to add UVs to the constructed mesh. For faces with tris and quads, this is no problem using UVWTag and UVWStruct.
The issue comes in when trying add UVs for faces with a number of points greater than 4. I'm not quite sure how I would go about constructing a UVWStruct object for a face with 5 points, for example.
I feel like the move is to not use a UVWTag here, but I'm not quite sure what my alternatives are. Is there a way to directly set the UV of a specific point in a mesh? Or is this a candidate for a CustomDataTag?