필터 지우기
필터 지우기

find orientation associated with the edge in delaunay triangulation

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2017년 10월 17일
댓글: Elysi Cochin 2017년 10월 17일
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