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

Re: `VisADLineArray

Hi Stuart,

One appraoch is to use DelaunayCustom.fill() and related methods,
which take 2-D polygons described by Gridded2DSets and return
fills as sets of triangles described by Irregular2DSets. These
VisAD data objects can then be linked to Displays for filled
display. There are examples in some visad/bom main() methods.

Good luck,
Bill
p.s., on the road and pressed for time

On Wed, 11 May 2005, Stuart Wier wrote:

> For a java package to extend the IDV I wish to make a subclass of the IDV's 
> MetSymbol
> that draws a symbol in the z=0 plane that is filled and has more than 4 
> vertices. The
> existing IDV code makes symbols of (unfilled) lines using VisADLineArray, and 
> filled
> symbols of of 3 and 4 vertices that using VisADTriangleArray and 
> VisADQuadArray, and
> specifing the normals to each edge. See for example 
> ucar.visad.ShapeUtility.java.  How
> are filled symbols of more than 4 vertices coded?  I need circles and ovals 
> made from
> trig functions of angles.
>
> Stuart Wuer
>


 
 
  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