I have applied diffrent materials to certain faces of my object’s mesh (by selecting some faces in edit mode and applying a new material to it).
Are there APIs that get me the vertex data (+ uv etc.) of those mesh parts and the material that is connected to each of those mesh parts? The intention is to extract those parts and export it as separate objects in a exporter script.
Now I don’t want to be too tacky here, but maybe there is a simple example around?
This question has been asked at least once before, your best off dealing with the separation on export.
Don’t create new separation blender meshes (unless you just want to test quickly). Just loop over the data and write the data thats relevant for each material.
You were going to have to do that anyways, to write the exporter, so just do it all during that loop. Then you only have to loop through the mesh once.