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.
I will try , this, but first I have unfortunately some problems installing VisAD: is stored it in .../visad my classpath is .:/net/ipfy/hilbring/GISterm:/net/ipfy/hilbring/GISterm/jars/GIFEncoder.jar: /net/ipfy/hilbring/GISterm/jars/NetscapeSecurity.jar: /net/ipfy/hilbring/GISterm/jars/oracle.zip: /net/ipfy/hilbring/GISterm/jars/png.jar: /net/ipfy/hilbring/GISterm/jars/printf.jar: /net/ipfy/hilbring/GISterm/jars/xml.jar: /opt/local/java/JSDK2.0/lib/jsdk.jar: /net/ipfy/hilbring/uisjars/gwdb.jar:/net/ipfy/hilbring/uisjars/uisfw.jar: /net/ipfy/hilbring/GISterm/jars/x3d.jar: /net/ipfy/hilbring/GISterm/jars/jcchart401K.jar: /net/ipfy/hilbring/visad/visad_src-2.0.jar:/net/ipfy/hilbring/visad: /net/ipfy/hilbring/visad/visad content of visad is: META-INF/ nom/ visad_examples.jar* edu/ ucar/ visad_src-2.0.jar* ncsa/ visad/ content of visad/visad is: AVControl.class AVControl.java Action.class Action.java ActionImpl.class ActionImpl.java AnimationControl.class AnimationControl.java AnimationSetControl.class AnimationSetControl.java BadDirectManipulationException.class BadDirectManipulationException.java BadMappingException.class BadMappingException.java BaseColorControl.class BaseColorControl.java BaseQuantity.class BaseQuantity.java BaseUnit.class BaseUnit.java CMYCoordinateSystem.class CMYCoordinateSystem.java CartesianProductCoordinateSystem.class CartesianProductCoordinateSystem.java Cell.class Cell.java CellImpl.class CellImpl.java ColorAlphaControl.class ColorAlphaControl.java ColorControl.class ColorControl.java CommonUnit.class CommonUnit.java ConstantMap.class ConstantMap.java Contour2D.class Contour2D.java ContourControl.class ContourControl.java Control.class Control.java ControlEvent.class ControlEvent.java ControlListener.class ControlListener.java CoordinateSystem.class CoordinateSystem.java CoordinateSystemException.class CoordinateSystemException.java CylindricalCoordinateSystem.class CylindricalCoordinateSystem.java DATE DEDICATION Data.class Data.java DataDisplayLink.class DataDisplayLink.java .... but when I do make compile in visad/visad I get the following errors over pages: javac -J-mx32m AVControl.java /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/VisADException.java): Public class visad.VisADException must be defined in a file called "VisADException.java". /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/DataRenderer.java): Public class visad.DataRenderer must be defined in a file called "DataRenderer.java". /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/ControlListener.java): Public interface visad.ControlListener must be defined in a file called "ControlListener.java". 3 errors javac -J-mx32m Action.java /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/ThingChangedListener.java): Public interface visad.ThingChangedListener must be defined in a file called "ThingChangedListener.java". /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/VisADException.java): Public class visad.VisADException must be defined in a file called "VisADException.java". /net/ipfy/hilbring/visad/visad_src-2.0.jar(visad/ThingReference.java): Public interface visad.ThingReference must be defined in a file called "ThingReference.java". 3 errors .... What is wrong? I tried additionally to run java visad.ss.SpreadSheet but the I get Exception in thread "main" java.lang.NoClassDefFoundError: visad/ss/SpreadSheet Thanks for any help Desiree o------------------------------------------------------------------------o | Desiree Hilbring Institut fuer Photogrammetrie und Fernerkundung | | Universitaet Karlsruhe, Germany | | | | email: hilbring@xxxxxxxxxxxxxxxxxxxx | | # 0721 6083676 | o------------------------------------------------------------------------o On Tue, 22 Aug 2000, Bill Hibbard wrote: > Hi Desiree, > > > I am developing an Java3D Application, where I want to create a > > terrain-surface from discrete Points. I have seen that the API from VisAD > > includes some classes about Delaunay-Triangulation, but I do not have a > > clue, how to use them, or if they can be helpful for me. Where can I find > > more documentation, as in the API or even some examples? > > Thanks for any help in advance. > > Assume that the locations of your points are defined in two > arrays: > > float[] x_locations, y_locations; > > and the terrain heights at these points are defined in the > array: > > float[] heights; > > Then you can create a terrain as a FlatField like this: > > RealType x = RealType.getRealType("x"); > RealType y = RealType.getRealType("y"); > RealType height = RealType.getRealType("height"); > RealTupleType xy = new RealTupleType(x, y); > FunctionType terrain_type = new FunctionType(xy, height); > > Irregular2DSet set > new Irregular2DSet(xy, new float[][] {x_locations, y_locations}); > FlatField terrain = new FlatField(terrain_type, set); > terrain.setSamples(new float[][] {heights}); > > Note that the 'new Irregular2DSet' constructor will implicitly > invoke one of the Delaunay constructors to compute a topology > for your x and y locations. You generally only need to invoke > a Delaunay constructor explicitly when you are constructing a > DealaunayCustom from a known topology. > > Please let me know if you have questions about this. > > Cheers, > 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 >
visad
archives: