texture map an image on triangular mesh

11 ビュー (過去 30 日間)
MB
MB 2020 年 5 月 2 日
回答済み: Ameer Hamza 2020 年 5 月 3 日
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
Ameer Hamza 2020 年 5 月 2 日
But how are you plotting these points? Mesh(V,F) is not a function in MATLAB.
MB
MB 2020 年 5 月 3 日
Using trimesh

サインインしてコメントする。

回答 (2 件)

KSSV
KSSV 2020 年 5 月 2 日
Read about triplot, trimesh, trisurf and patch.

Ameer Hamza
Ameer Hamza 2020 年 5 月 3 日
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.

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by