Effacer les filtres
Effacer les filtres

find the vertices from delaunay triangulation

7 vues (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 17 Oct 2017
Modifié(e) : KSSV le 17 Oct 2017
i creates a Delaunay triangulation using the following lines
X = [y(:,1) x(:,1)];
dt = delaunayTriangulation(X);
The output "dt" is a matrix with 3 columns (a,b,c). How can i find the vertices of the triangles so that i get (xa,ya) (xb,yb) and (xc,yc)

Réponse acceptée

KSSV
KSSV le 17 Oct 2017
Modifié(e) : KSSV le 17 Oct 2017
x = rand(10,1) ; % a randoms data
y = rand(10,1) ;
dt = delaunayTriangulation(x,y) ; % delaunay triangulation
points = dt.Points ; % points
tri = dt.ConnectivityList ; % nodal connectivity
x = points(:,1) ;
X = x(tri) ;
y = points(:,2) ;
Y = y(tri) ;

Plus de réponses (0)

Catégories

En savoir plus sur Delaunay Triangulation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by