Mapping texture coordinates for ofMesh (ply file)?


I have learned meshes, textures and shaders by using ofSpherePrimitive. Now I would like to replace the sphere with my 3d model (ply file, uploaded with mesh.load).

This part of code confuses me:

    float w = fbo2.getWidth(); // setting texture to match FBO2 size
    float h = fbo2.getHeight();
    sphere.mapTexCoords(0, h, w, 0);
   // mesh.mapTexCoords(0, h, w, 0);

mapTexCoords does not work with mesh so I have been trying to find a way to replace it - without success so far. Any advice on this? Thanks a lot!