DelaunayTri still hangs or crashes MATLAB, any workaround?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Illya
el 29 de Dic. de 2014
Comentada: Illya
el 29 de Dic. de 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
0 comentarios
Respuesta aceptada
Sean de Wolski
el 29 de Dic. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!