DelaunayTri still hangs or crashes MATLAB, any workaround?

1 回表示 (過去 30 日間)
Illya
Illya 2014 年 12 月 29 日
コメント済み: Illya 2014 年 12 月 29 日
Here is a simple test to reproduce the situation. The following example contains only 3 intersecting triangles.
x = [ 15.5; 15.872042489999444; 14.0; 15.5;
16.35853698188107; 15.385547998117818; 14.5; 16.35853698188107;
17.0; 15.388922001685851; 16.355162978313039; 17.0];
y = [ 6.5; 5.0949970000008307; 4.5; 6.5;
4.9795712257177893; 5.210422774283872; 4.5; 4.9795712257177893;
5.5; 5.2238170053246717; 4.9661769946769896; 5.5];
con = [1 2; 2 3; 3 4; 5 6; 6 7; 7 8; 9 10; 10 11; 11 12];
tri=DelaunayTri(x,y,con); % after this call MATLAB never returns back
% slowly eating-up memory until it eventually crashes.
Given the data-sets I'm dealing with such cases are not rare, ant it is almost impossible to detect/isolate them.
I tested it against R2010 and R2011 (win64), no success. Could anybody, please, run this test on newer versions?
Any clues are appreciated.
Thanks

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 12 月 29 日
On my Win7x64 laptop, R2014b:
tic
x = [ 15.5; 15.872042489999444; 14.0; 15.5;
16.35853698188107; 15.385547998117818; 14.5; 16.35853698188107;
17.0; 15.388922001685851; 16.355162978313039; 17.0];
y = [ 6.5; 5.0949970000008307; 4.5; 6.5;
4.9795712257177893; 5.210422774283872; 4.5; 4.9795712257177893;
5.5; 5.2238170053246717; 4.9661769946769896; 5.5];
con = [1 2; 2 3; 3 4; 5 6; 6 7; 7 8; 9 10; 10 11; 11 12];
tri=DelaunayTri(x,y,con); % after this call MATLAB never returns back
% slowly eating-up memory until it eventually
toc
Yields
Warning: Duplicate data points have been detected
and removed.
The Triangulation indices and Constraints are
defined with respect to the unique set of points
in DelaunayTri property X.
Warning: Intersecting edge constraints have been
split, this may have added new points into the
triangulation.
Elapsed time is 0.001876 seconds.
  1 件のコメント
Illya
Illya 2014 年 12 月 29 日
Great! I expected that newer version might be a solution. Thank you Sean.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by