DelaunayTri still hangs or crashes MATLAB, any workaround?

1 vue (au cours des 30 derniers jours)
Illya
Illya le 29 Déc 2014
Commenté : Illya le 29 Déc 2014
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

Réponse acceptée

Sean de Wolski
Sean de Wolski le 29 Déc 2014
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 commentaire
Illya
Illya le 29 Déc 2014
Great! I expected that newer version might be a solution. Thank you Sean.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by