Delaunay Triangulation

조회 수: 6 (최근 30일)
Roopak Tamboli
Roopak Tamboli 2012년 6월 24일
Hi, I have set of points from which I am trying to create a Triangulation. Delaunay Triangulation is giving expected results. Please explain its data structure and the main thing is* "HOW DO I GET THE CO ORDINATES OF TRIANGLES IN AN ARRAY ?"* dt.Triangulation shows numbers which are not the points I enter for triangulation.

채택된 답변

the cyclist
the cyclist 2012년 6월 24일
Here is a simple example, adapted from the documentation from DelaunayTri:
x = rand(4,1);
y = rand(4,1);
dt = DelaunayTri(x,y)
triplot(dt)
dt.X is a 4x2 array, listing the (x,y) coordinates of the four input points. Consider these to be points 1,2,3,4 in the order listed by dt.X, NOT the order of the input.
The triangulation will create three triangles. Each row of the output variable dt.triangulation tells you information about ONE of those triangles. So, for example, if one row of dt.triangulation is
2 4 3
then that is saying that the 2nd, 4th, and 3rd points from dt.X form one of the Delaunay triangles.
Note that
doc DelauneyTri
lists many more methods for the DelaunayTri class.
I hope that helps.
  댓글 수: 2
Roopak Tamboli
Roopak Tamboli 2012년 6월 25일
Thank you.
Roopak Tamboli
Roopak Tamboli 2012년 6월 27일
Thank You the cyclist.
I have one more problem. The set of points that I have is having repeated points.So Delaunay removes duplicate points.Can we find which of the repeated points is actually contributes to the Triangulation?

댓글을 달려면 로그인하십시오.

추가 답변 (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