필터 지우기
필터 지우기

How to create a surface from node coordinates and face indexes?

조회 수: 15 (최근 30일)
MLP
MLP 2022년 7월 5일
답변: Steven Lord 2022년 7월 5일
I am trying to create a surface using surf() to represent a 3D geometry. The issue is that the nodes coordinates are stored in one array with three columns for x, y, and z each. Meanwhile I have the face indexes making up triangular faces stored in another array.
Previously I've written a script that transforms a surf geometry into a ply file, so in this case I am looking to somewhat reverse engineer that process.
Ultimately I need the surface to make a 3D countour plot.
Is there any way to achieve this with the node coordinate and face index information? Files containing such information are attached.
I believe I could plot each triangular surface individually but with 10k surffaces there might be a more efficient way to do this.

답변 (1개)

Steven Lord
Steven Lord 2022년 7월 5일
Does the trimesh function do what you want?
Alternately take a look at the griddata function and then the isosurface or contour functions, since you mentioned your ultimate goal is to "make a 3D countour plot".

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by