Re: Polygon with holes
- To: mathgroup at smc.vnet.net
- Subject: [mg97351] Re: Polygon with holes
- From: Pillsy <pillsbury at gmail.com>
- Date: Wed, 11 Mar 2009 04:26:20 -0500 (EST)
- References: <gp5fn9$9mc$1@smc.vnet.net>
On Mar 10, 6:34 am, Harrie Kraai <hakr... at xs4all.nl> wrote: > Does anyone know of a facility for Polygons (graphics) with holes inside? Sure. Try this: With[{pts = {{0.1, 0.1}, {0.1, 0.9}, {0.9, 0.9}, {0.9, 0.1}, {0.1, 0.1}, {0.3, 0.3}, {0.7, 0.3}, {0.7, 0.7}, {0.3, 0.7}, {0.3, 0.3}}}, Show[Graphics[Polygon[pts]], PlotRange -> {{0, 1}, {0, 1}}]] Cheers, Pillsy