Re: Fwd: VisAD and MPG files

Hi Yi,

> I changed program P3_01 a little bit, the domain_set is a irregular 2d
> I want to use this changed program to visualize the pixel_value in the
> domain, which is a annular area with inner radius of 1 and outer radius
> 6. I wonder why the area with radius<1 is also painted. If you could
> run it and you will see it. I will appreciate it if you could keep me
informed why? Thanks so much.

You've invoked the Irregular2DSet constructor without specifying
an explicit topology, so it computes one use a Dealunay algorithm.
This computes a topology for the convex hull of the samples, so
allows no holes (like the inside of your radius < 1). You need
to compute an explicit topology with a hole using a DelaunayCustom,
and pass it to your Irregular2DSet constructor.

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

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