Effacer les filtres
Effacer les filtres

texture map an image on triangular mesh

17 vues (au cours des 30 derniers jours)
MB
MB le 2 Mai 2020
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 commentaires
Ameer Hamza
Ameer Hamza le 2 Mai 2020
But how are you plotting these points? Mesh(V,F) is not a function in MATLAB.
MB
MB le 3 Mai 2020
Using trimesh

Connectez-vous pour commenter.

Réponses (2)

KSSV
KSSV le 2 Mai 2020
Read about triplot, trimesh, trisurf and patch.

Ameer Hamza
Ameer Hamza le 3 Mai 2020
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by