Skip to content

eugene-kirzhanov/poly2tri.kotlin

 
 

Repository files navigation

Kotlin port of Poly2Tri java library. Can be used in Kotlin multiplatform projects, it doesn't depend on JVM libraries.

Original notes:

Since there are no Input validation of the data given for triangulation you need to think about this.

1. Poly2Tri do not support multiple points with exact same Coordinate. (This is an issue when using constraints/polygons)
   a. So if you have a cyclic function that generates points make sure you don't add the same Coordinate twice.
   b. If you are given input and aren't sure same point exist twice you need to check for this yourself.
      Poly2Tri does a simple check if first and last point is same when you create a polygon but that is all the input 
      validation.
2. Poly2Tri do not support intersecting constraints(yet)
   a. This means only simple polygons are supported

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%