Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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


  • Prev by Date: Re: typsetting bug still present in
  • Next by Date: Re: The "Go Back" Button doesn't work
  • Previous by thread: Re: Polygon with holes
  • Next by thread: Re: Polygon with holes