Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] random points

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] random points


Chronological Thread 
  • From: Yang Liu <>
  • To:
  • Subject: Re: [cgal-discuss] random points
  • Date: Sun, 26 Sep 2010 08:29:39 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=mBVdZ+S60l0C9BTTCastae6Ot/7Ti0n9VMnro+WmFMsJP/EQI+8WC7zo6dzWOBJ4A/ Bc9a0bXYZ5UkOaku86Lj3CsZrBYqA+6Vj78v1BGBRjzYkpBmaaMne6gawbIt4VUA1dgb n84WTdH9yXKc1aa5uA3FSfG0SCbiTdfWkjwxA=

read this paper "Turk, Greg, Generating Random Points in Triangles,
Graphics Gems, p. 24-28"
or use Prof. Turk's code directly:
http://tog.acm.org/resources/GraphicsGems/gems/TriPoints.c
The input is a convex polygon.

>
> i have a simple polygon (cgal manual, page 4070) and i want to produce some
> random points in (interior) the polygon. how can i do that?
> --



Archive powered by MHonArc 2.6.16.

Top of Page