MathGroup Archive 2009

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

Search the Archive

Re: testing if a point is inside a polygon


Mitch,

the problem was discussed by the mathgroup in 2000 and Luc Barthelet has
collected some results at
http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Notebook:PointInsidePolygon.nb


Adriano Pascoletti


2009/2/9 Mitch Murphy <mitch at lemma.ca>

>
> is there a way to test whether a point is inside a polygon? ie.
>
>        PointInsidePolygonQ[point_,polygon_] -> True or False
>
> i'm trying to do something like ...
>
>
>  ListContourPlot[table,RegionFunction->CountryData["Canada","Polygon"]]
>
> to create what would be called a "clipping mask" in photoshop.
>
> cheers,
> Mitch
>
>



  • Prev by Date: Re: NMinimize Bug in Mathematica 7.0?
  • Next by Date: Re: Mathematicas simplifications
  • Previous by thread: Re: testing if a point is inside a polygon
  • Next by thread: Re: Re: testing if a point is inside a polygon