Re: Irregular 3D rendering

Hi Muz,

> I want to use Irregular3DSet to render a 2D rectangular matrix into a 3D 
> cylinder. I'm wondering if there are any examples  I can use.

Use a Gridded3DSet with manifold dimension = 2 instead.
Use the constructor signature:

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

Where 'float[3][number_of_samples] samples' defines the
3-D locations of grid points on the cylinder and
number_of_samples = lengthX * lengthY.

Note that visad/examples/Test37.java uses a Gridded3DSet
with manifold dimension = 2, as the domain Set of a Field
sampled at a 2-D grid on a curved surface.

Good luck,
Bill


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