フィルターのクリア

How can I create a 3d surface plot from a set of vertices and faces found in an .obj file?

15 ビュー (過去 30 日間)
Karol K
Karol K 2017 年 12 月 4 日
回答済み: lokesh kumar 2019 年 8 月 25 日
So an .obj is made up of vertices (v) and faces (f). Vertices have x, y and z coordinates. Faces are triangular, each face being defined by 3 vertices. For example:
  • v x y z
  • v -1 -1 -1
  • v -1 -1 1
  • v -1 1 -1
  • .........
  • f 1 2 3
  • f 5 3 2
  • f 7 1 8
  • ..........
So in this case the first face is a triangle with extremeties at the first 3 vertices. The second face is defined by vertices 5, 3 and 2.....and so on. Is there a function in matlab which can plot this type of data?

回答 (2 件)

KSSV
KSSV 2017 年 12 月 4 日
doc triplot, trisurf, trimesh and also patch.

lokesh kumar
lokesh kumar 2019 年 8 月 25 日
I have triagulated data set (vertices and face ) ,how to plot into matlab surf.
Thanks

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by