Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ygdrasil-io/delaunator-kt

Fast Delaunay triangulation of 2D points implemented in Kotlin.
https://github.com/ygdrasil-io/delaunator-kt

delaunator delaunay-triangulation kotlin kotlin-library kotlin-multiplatform

Last synced: about 2 months ago
JSON representation

Fast Delaunay triangulation of 2D points implemented in Kotlin.

Awesome Lists containing this project

README

        

![Java CI with Gradle](https://github.com/ygdrasil-io/Delaunator-Kt/workflows/Java%20CI%20with%20Gradle/badge.svg?branch=master)

# Delaunator Kt

Fast [Delaunay triangulation](https://en.wikipedia.org/wiki/Delaunay_triangulation) of 2D points implemented in Kotlin.

This code was ported from [Delaunator C# project](https://github.com/nol1fe/delaunator-sharp) (C#) which is a port from [Mapbox's Delaunator project](https://github.com/mapbox/delaunator) (JavaScript).




## Documentation

See https://mapbox.github.io/delaunator/ for more information about the `Triangles` and `Halfedges` data structures.

## Run Jetpack Compose Desktop application
gradlew :jetpack-compose:run

## Add to Gradle project

First declare the repository on your buildscript

```kotlin
repositories {
maven {
url = uri("https://gitlab.com/api/v4/projects/25805863/packages/maven")
}
}
```

Then add the required dependency regarding your project
```kotlin
dependencies {

// On MPP Project
implementation("io.ygdrasil:delaunator-kt:2023.09.22")

// On JS Project
implementation("io.ygdrasil:delaunator-kt-js:2023.09.22")
}
```