Hi Martin, Today, I compared the new JTS triangulation api with the triangulation plugin I wrote some years ago. In my tests, I just compared speed for triangulation of a random set of points (no constraint, no real data). Measures include initialization, triangulation, and feature(s) creation. Both libraries worked well. I did not check result correctness. Processing time was faster with my code (and ratio between two consecutive figures are always better). Of course, triangulation speed is only one thing and may not be the most important. Just want to show that there is still room for improvement. In OpenJUMP, memory usage was better with JTS api than with my plugin (1560Mb vs 2033Mb). I suppose this is partly due to the number of features created (about 1M features in my case, only one feature in your case). On the other hand, as I told you before, playing with a MultiPolygon composed of 1M triangles is not easy. In OJ, with a MultiPolygon of 1M triangles, the user interface do not respond anymore and I could not explode the MultiPolygon (if I had to implement a plugin, I would probably make it possible to explode it before it is displayed). I did not look at your implementation, but I tried to find its complexity in an empiric way. I found that your algo has about a n*sqrt(n) complexity, but this deduction may be due to measurement errors : MM : n*log(n)*2.4E-6 MD : n*sqrt(n)*0.1E-6 Even if it is not yet the fastest, I have no doubt JTS triangulation api will soon be a reference in the java world. Thank you to share your excellent work. Michaël Figures (times in sec for sets from 50 000 to 1 000 000 points) ![]() Michaël Michaud a écrit : Hi Martin, |
------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel