Hi everyone!
I’m trying to draw 2d mesh (uv space coordinate) from 3d mesh(.ply) with texture coordinate using ofMesh.
But I couldn’t get any texture vertex from 3d mesh.
For example
//----------------------------------------
ofMesh mesh3d, mesh2d;
mesh3d.load("filename.ply");
for(int i=0; i<mesh3d.getNumTexCoords(); i++){
mesh2d.addVertex(mesh3d.getTexCoord(i));
}
mesh2d.draw();
//-----------------------
Actually, the value of mesh3d.getNumTexCoords() was 0.
So, I want to ask you whether the load function is working for loading texture coordinate or not.
Please confirm it.
Best regards,
euclid