texture map an image on triangular mesh
Show older comments
Given an irregular triangle mesh with V and F as the no. of vertices and faces respectively and an image. How to map image (texture) to Mesh(V,F) ?
There are other answers but they are using meshgrid. Can I do this without using meshgrid as my Mesh is irregular.
5 Comments
Ameer Hamza
on 2 May 2020
Can you show the code to create the mesh?
MB
on 2 May 2020
MB
on 2 May 2020
Ameer Hamza
on 2 May 2020
But how are you plotting these points? Mesh(V,F) is not a function in MATLAB.
MB
on 3 May 2020
Answers (2)
KSSV
on 2 May 2020
0 votes
Read about triplot, trimesh, trisurf and patch.
Ameer Hamza
on 3 May 2020
0 votes
By default, trimesh returns a patch object. MATLAB does not seem to support texture mapping on the patch object. See this FEX package: https://www.mathworks.com/matlabcentral/fileexchange/28106-texture-patch, which uses the surface object to create the patches which support texture mapping.
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!