Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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!



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690