texture map an image on triangular mesh
显示 更早的评论
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 个评论
Ameer Hamza
2020-5-2
Can you show the code to create the mesh?
MB
2020-5-2
MB
2020-5-2
Ameer Hamza
2020-5-2
But how are you plotting these points? Mesh(V,F) is not a function in MATLAB.
MB
2020-5-3
回答(2 个)
KSSV
2020-5-2
0 个投票
Read about triplot, trimesh, trisurf and patch.
Ameer Hamza
2020-5-3
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!