Re: Gridded3DSet.isosurf() method, color levels

Hello to Bill H. and the VisAD mailing list,

Another question(s) about colors:
One of the parameters to the Gridded3DSet.makeIsoSurface() method looks
like an R,G,B tuple for each point in the gridded set.  My question(s) is,

1) Where are these values computed?  In other words, what class(es) is/are
   responsible for this? and

2> How are these values computed (conceptually)?  Or perhaps another way
   of asking would be, on what basis are these color values computed?
   Is there a mapping from grid values to color values?  and

3) Could the inverse computation be done?  Could one write a function that
   computed the original sample point from the color values (within some
   margin of error)?

     * @param isolevel     -the isosurface value
     * @param fieldValues  -the set of input data values
     * @param color_values -an R,G,B tuple for each sample point
     * @param indexed      -returns TRUE if optimization on
     * @return array       -a triangle strip array (VisADTriangleStripArray)
    public VisADGeometryArray makeIsoSurface(float isolevel,
                                             float[] fieldValues, 
                                             byte[][] color_values, 
                                             boolean indexed)

-cheers, bob

PS. Thanks to Bill H. for answering my last question(s)!

Robert S Laramee        tel:    (603) 868-1361 (new as of 19 Jan '00)
9 Woodman Ave, #316     office: (603) 862-0350
Durham, NH 03828        URL:

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