find orientation associated with the edge in delaunay triangulation

2 次查看(过去 30 天)
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)

采纳的回答

KSSV
KSSV 2017-10-17
  2 个评论
KSSV
KSSV 2017-10-17
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Delaunay Triangulation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by