creating faces from vertices

6 vues (au cours des 30 derniers jours)
sama alimohamadi
sama alimohamadi le 1 Jan 2019
Commenté : Aubrey Roche le 29 Avr 2019
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

Réponses (1)

KSSV
KSSV le 1 Jan 2019
Modifié(e) : KSSV le 1 Jan 2019
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 commentaires
Stephen23
Stephen23 le 1 Jan 2019
Aubrey Roche
Aubrey Roche le 29 Avr 2019
Did you find a solution to this problem?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by