필터 지우기
필터 지우기

numerical stable triangulation method?

조회 수: 2 (최근 30일)
Andreas Lobinger
Andreas Lobinger 2012년 10월 25일
Triangulations of regular polygons (in 2D?) are ambiguos. So for a square ABCD there are two possible triangulations -> ABC ACD or ABD DBC. My problems come from the fact/observation, that DelaunayTri gives me the different triangulation on different computers for the same input which breaks some of our regression tests for our SW...
1) Is there any possibility for force DelaunayTri to preserve something like an order?
2) What other MATLAB internals can be used/misused to create a triangulation
I was already wondering if i need to implement earclipping (which seems to have a internal ordering process) on our own?

채택된 답변

José-Luis
José-Luis 2012년 10월 25일
편집: José-Luis 2012년 10월 25일
  1. No. Both are valid Delaunay triangulations.
  2. None, unless you write it yourself. You could always try the file exchange, maybe someone has done this before. Matlab's triangulation is based on qHull. If you want other types of triangulations, I think you should look outside Matlab, for instance CGAL. CGAL has a very steep learning curve, and requires you to know C++. On the other hand, it can use exact arithmetic so numerical stability is less of a problem.
  댓글 수: 2
Andreas Lobinger
Andreas Lobinger 2012년 10월 25일
I'm not doubting the validity of the Delaunay triangulation. But if you look f.e. at the options of unique, there are the OCCURANCE and the 'stable' option. So even if the output is equal in the mathematical sense, ordering of the 'equal' outputs might be an issue.
José-Luis
José-Luis 2012년 10월 26일
Well, I think that what you could do instead is to check if the triangulation is valid, and not compare them directly.

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

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