Constructing random polygons
David P. Dailey, Deborah Whitfield · ACM SIGITE Conference on Information Technology Education (SIGITE) · 2008
The construction of random polygons has been used in psychological research and for the testing of algorithms. With the increased popularity of client-side vector based graphics in the web browser such as seen in Flash and SVG, as well as the newly introduced tag in HTML5.0, the use of random shapes for creation of scenes for animation and interactive art requires the construction of random polygons. A natural question, then, is how to generate random polygons in a way which is computationally efficient (particularly in a resource limited environment such as the web browser). This paper presents a random polygon algorithm (RPA) that generates polygons that are random and representative of the class of all n-gons in O(n2logn) time. Our algorithm differs from other approaches in that the vertices are generated randomly, the algorithm is inclusive (i.e. each polygon has a non-zero probability to be constructed), and it runs efficiently in polynomial time.
Cited by 7 works. doi:10.1145/1414558.1414592
Authors
References
- A note on two problems in connexion with graphs
- The Fractal Geometry of Nature
- Shortest Connection Networks And Some Generalizations
- An efficient algorith for determining the convex hull of a finite planar set
- A combinatorial theorem in plane geometry
- Visual Perception of Form
- Triangulating a simple polygon in linear time
- An optimal algorithm for intersecting line segments in the plane
- A fast las vegas algorithm for triangulating a simple polygon
- Heuristics for the Generation of Random Polygons