I have this error when running triangulation sample:
kotlin.KotlinNullPointerException
at com.soywiz.korma.triangle.internal.Sweep.finalizationPolygon(Poly2Tri.kt:215)
at com.soywiz.korma.triangle.internal.Sweep.triangulate(Poly2Tri.kt:196)
at com.soywiz.korma.triangle.triangulate.TriangulateKt.triangulate(Triangulate.kt:12)
at MainKt$main$2$1$1.invoke(main.kt:45)
...
The haxe version sample detects invalid polygons and doesn't allow you to add the lines + allows to add holes. If you want to port the sample to support that too, would be great
I have this error when running triangulation sample: