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.
For a degenerate Set (multiple identical points) you should probably use an Irregular2DSet and a DelaunayCustom (so you can tell it what topology to use - the automated Delaunay algorithms will also throw Exceptions on this). Good luck, Bill ---------------------------------------------------------- Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI 53706 hibbard@xxxxxxxxxxxxxxxxx 608-263-4427 fax: 608-263-6738 http://www.ssec.wisc.edu/~billh/vis.html On Wed, 17 Apr 2002, Praktikanten-Account wrote: > hello mailinglistEner > > i have a problem. > i would like to draw a triangle with the x,y coordinates (0.5/0.5 | > 1.0/1.0 | 1.0/0.5 | 0.5/0.5) > i wrote something like this > > x = new RealType("X", SI.meter, null); > y = new RealType("Y", SI.meter, null); > > double [][] x_vals = new double[][]{{0.5,1.0,1.0,0.5}}; > > x_set = new Gridded1DDoubleSet(x, x_vals, 4); > > double [][] y_vals = new double[][]{{0.5,1.0,0.5,0.5}}; > > > and he shows me after the start this Set.Exception > > Gridded1DDoubleSet: samples do not form a valid grid (2) > > i think that is because of the same coordinates and the > Gridded1DDoubleSet. > but which set should i use ? > > thanks > larsson > >
visad
archives: