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.

Re: [visad] The results of your email commands

 It looks like you've found a bug in the DelaunayClarkson
code. As I recall, a programmer at SSEC converted
Clarkson's C code to Java at least ten years ago. Perhaps
someone will try to hunt down this bug. But since your data
set is small and has dimension = 2, I recommend that you
try replacing the call to the DelaunayClarkson constructor
with:

DelaunayWatson d = new DelaunayWatson(samples);

Good luck,
Bill

  ----- Original Message -----
  From: "áÂÁËÕÍÏ× áÎÄÒÅÊ"
  To: visad@xxxxxxxxxxxxxxxx
  Subject: Re: [visad] The results of your email commands
  Date: Sat, 4 Apr 2009 15:56:05 +0400


  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.(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 mailing list
  visad@xxxxxxxxxxxxxxxx
  For list information, to unsubscribe, visit:
  http://www.unidata.ucar.edu/mailing_lists/

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com

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