Re: Plotting Particles in 3D space

Hi Dave,

> My first goal is create a program that can accept a list of x,y,z
> coordinates and some sort of value, like temperature mapped to RGB, in
> perhaps 4 1-dimensional arrays.

You'd create a FlatField with MathType something like:

  (index -> (x, y, z, temp))

Wtih domain Set like Integer1DSet(index, N) where n is the
number of points. You'd pass your 4 arrays in something like:

  float[][] values = {xarray, yarray, zarray, temparray};
  field.setSamples(values, false); // false for don't copy array

Good luck,
Bill


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