MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Polygon with holes


In the documentation of Polygon:

Polygons in 2D and 3D can be non-convex, and can intersect themselves.
Self-intersecting polygons are filled according to an even-odd rule
that alternates between filling and not at each crossing.

Cheers -- Sjoerd

On Mar 10, 12:34 pm, Harrie Kraai <hakr... at xs4all.nl> wrote:
> Hi group,
>
> Does anyone know of a facility for Polygons (graphics) with holes inside?
> I guess there is no such thing as an oriented polygon in Mathematica?
> Or a polygon consisting of disjoint lines (inner and outer contours,
> clockwise and counterclockwise)?
>
> I can see that it is possible to connect outer and inner contours using
> a dummy line, but that is not so easy to program in a generic way.
>
> Solutions such as creating an artificial hole by another Polygon in the
> background colour are not really acceptable.
>
> Polygon's with holes would be very useful for maps etc.
>
> Sincerely
>
> HK



  • Prev by Date: General form of a summation as a function of 2 variables
  • Next by Date: Using Select
  • Previous by thread: Re: Polygon with holes
  • Next by thread: Re: Polygon with holes