Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Fill convezPolygons

Hi Olver,

First, just send to visad@xxxxxxxxxxxxxxxx and don't also
CC visad-list@xxxxxxxxxxxxxx That just sends everyone two
copies.

Try using DelaunayCustom.fill() to do this. You can either
pass your polygon outline in a float[][] array, as in
visad/examples/Region.java, or as a Gridded2DSet with
manifold dimension = 1. fill() returns an Irregular2DSet.

Good luck,
Bill

On Tue, 16 Aug 2005, Olver Olfrey Hernandez Navarro wrote:

> Hi all.
>
> I tried to instance an Irregular2DSet with an convex Polygon and  it doesn't 
> work like I expected.
>
> When I used either Gridded2DSet or Irregular2DSet it displays 
> Gridded2dSet.png and Irregular2dSet.png respectly.
>
> I need the polygon like the Gridded2DSet, but filled like the Irregular2DSet.
>
> How can I do it?
>
> Thanks a lot.
>
> Olver Hernandez
>
>


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690