NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello, all! I try to use Delaunay triangulation in the following way: /*five 2d points*/ float[][] samples = { {0.0f, 0.1f, 0.2f, 0.3f, 0.4f}, {0.0f, 0.5f, 0.0f, 0.5f, 0.0f} }; DelaunayClarkson d = new DelaunayClarkson(samples); But get an exception Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at visad.DelaunayClarkson.<init>(DelaunayClarkson.java:1120) at Test.main(Test.java:95) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) Can you tell me, please, what is the trouble? thaks!
visad
archives: