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/ application does something like this with

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738

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