Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [visad] The results of your email commands

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!



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: