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

Re: Line Coordinates

Hi Mohamad,

> I need to specify the line points in real world coordinates (x, y, z).
> How can I do that in the context explained above?   Thanks.

You can do this by constructing a Gridded3DSet with manifold dimension = 1.
The constructor is:

  public Gridded3DSet(MathType type, float[][] samples, int lengthX)

where samples is dimensioned float[3][lengthX].  This will be depicted as
a single connected curve.  To create a collection of disconnected curves,
construct a UnionSet from an array of Gridded3DSets.  The constructor is:

  public UnionSet(MathType type, SampledSet[] sets)

The examples/Rivers.java application does something like this with
Gridded2DSets.

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

 
 
  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