Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!e53g2000hsa.googlegroups.com!not-for-mail
From: spiffyguy917@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: Uniformly Distribute Points inside Polygon
Date: Wed, 4 Jun 2008 19:08:46 -0700 (PDT)
Organization: http://groups.google.com
Lines: 33
Message-ID: <549a15b6-4c6f-48d1-95bf-06d2e0c4844c@e53g2000hsa.googlegroups.com>
References: <15675137-8bde-4220-abea-e9cc67b3694c@f36g2000hsa.googlegroups.com> 
NNTP-Posting-Host: 157.127.124.15
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1212631727 3201 127.0.0.1 (5 Jun 2008 02:08:47 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 5 Jun 2008 02:08:47 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: e53g2000hsa.googlegroups.com; posting-host=157.127.124.15; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
Xref: news.mathworks.com comp.soft-sys.matlab:472275


On Jun 4, 6:59=A0pm, "Roger Stafford"
<ellieandrogerxy...@mindspring.com.invalid> wrote:
> spiffyguy...@gmail.com wrote in message <de4780ca-dfdc-4d69-
>
> b457-14cd0f50e...@w7g2000hsa.googlegroups.com>...> .......
> > -Assume a and b are vectors to the polygon in a cartesian plane, a has
> > the x direction points and b has the y direction points
> > -Assume m points in the x direction
> > -Assume n points in the y direction
> > ......
>
> --------
> =A0 When I first read your question, I interpreted it as asking for a rand=
om
> distribution of points within the polygon with a statistically uniform dis=
tribution
> therein. =A0That is what I described. =A0If you want an actually uniform d=
istribution of
> a meshwork of points, then what you are doing is probably as good a method=
 as
> any. =A0Sorry for the misinterpretation.
>
> Roger Stafford

Thanks for all your feedback everyone... While I might be able to get
this meshgrid of points to work, I'd ideally want to specify an
*exact* number of points inside the polygon. With the meshgrid, I
won't know how many points will fall into the polygon beforehand. I
think the triangle method is the best way to do it so far, but I
haven't exactly figured out how to implement it... Seems like it'd be
an iterative process depending on the number of points and creating
that same number of triangles.. Any more insight into how to do this?
Thanks again!