[orx-triangulation] Add generated and verified documentation

This commit is contained in:
Edwin Jakobs
2025-01-19 00:13:44 +01:00
parent 8ef7264c63
commit 1752685476
5 changed files with 51 additions and 0 deletions

View File

@@ -6,6 +6,17 @@ import org.openrndr.math.Vector2
import org.openrndr.shape.Circle
import org.openrndr.shape.Rectangle
/**
* This program generates a Voronoi diagram within a defined circular area and visualizes it.
*
* The program performs the following:
* - Defines a circular area and a rectangular bounding frame within the canvas.
* - Uses Poisson Disk Sampling to generate points within the circular area.
* - Computes the Delaunay triangulation for the generated points, including equidistant points on the circle boundary.
* - Derives the Voronoi diagram using the Delaunay triangulation and the bounding frame.
* - Extracts the cell polygons of the Voronoi diagram.
* - Renders the Voronoi cell polygons on the canvas, with a pink stroke on a black background.
*/
fun main() {
application {
configure {