Re: Polygon with holes
- To: mathgroup at smc.vnet.net
- Subject: [mg97387] Re: Polygon with holes
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Thu, 12 Mar 2009 02:19:34 -0500 (EST)
- References: <gp5fn9$9mc$1@smc.vnet.net>
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