[orx-triangulation] Make DelaunayTriangulation.delaunay public

This commit is contained in:
Edwin Jakobs
2024-05-01 21:31:03 +02:00
parent 063543d4b6
commit b668240e94

View File

@@ -10,7 +10,7 @@ import org.openrndr.shape.contours
* Kotlin/OPENRNDR idiomatic interface to `Delaunay`
*/
class DelaunayTriangulation(val points: List<Vector2>) {
internal val delaunay: Delaunay = Delaunay.from(points)
val delaunay: Delaunay = Delaunay.from(points)
fun voronoiDiagram(bounds: Rectangle) = VoronoiDiagram(this, bounds)