Applying a texture with faceUV to a mesh crated using .toMesh

Another way to create a frame Making A Frame | Babylon.js Documentation.

However faceUVs are only an option on a few specific meshes as they are set during the mesh creation.

Here is another approach Texturing Ribbon asset - #12 by JohnK

The image texture file has been removed by the op you will have to supply your own