find orientation associated with the edge in delaunay triangulation
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 17 Okt. 2017
Kommentiert: Elysi Cochin
am 17 Okt. 2017
i creates a Delaunay triangulation using the following lines
X = [y(:,1) x(:,1)];
dt = delaunayTriangulation(X);
How to find orientation associated with the edge to get (ThetaA, ThetaB, ThetaC)
0 Kommentare
Akzeptierte Antwort
KSSV
am 17 Okt. 2017
You have vertices of triangle in hand...use this function:
2 Kommentare
KSSV
am 17 Okt. 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) ;
nel = size(tri,1) ;
Angles = zeros(nel,3) ;
for i = 1:nel
Angles(i,:) = FindAngles([X(i,:)' Y(i,:)']) ;
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Delaunay Triangulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!