creating faces from vertices

조회 수: 10 (최근 30일)
sama alimohamadi
sama alimohamadi 2019년 1월 1일
댓글: Aubrey Roche 2019년 4월 29일
I have a m*3 matrix including the position of m 3D point positions, that make a surface. how can I create the triangulation facesc of these points (vertices)? I have attached my matrix.
thanks.
Samaneh

답변 (1개)

KSSV
KSSV 2019년 1월 1일
편집: KSSV 2019년 1월 1일
Read about delaunayTriangulation
load('vertices.mat');
x = vertices(:,1) ;
y = vertices(:,2) ;
z = vertices(:,3) ;
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
x = dt.Points(:,1) ;
y = dt.Points(:,2) ;
trisurf(tri,x,y,z)
shading interp
view(2)
If you have edges in hand.......provide them and avoid the unnecessary connections. Also have a look on alphashape
  댓글 수: 4
Stephen23
Stephen23 2019년 1월 1일
Aubrey Roche
Aubrey Roche 2019년 4월 29일
Did you find a solution to this problem?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by