All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.viseon.threejs.declarations.extras.Earcut.kt Maven / Gradle / Ivy

Go to download

Kotlin wrapper for ThreeJs, javascript library for 3d rendering

There is a newer version: 126.0.0
Show newest version
@file:JsModule("three")
package ch.viseon.threejs.declarations.extras

	/**
	* An implementation of the earcut polygon triangulation algorithm. The code is a port of [link:https://github.com/mapbox/earcut mapbox/earcut].
	*/
open external class Earcut{

	/**
	* data -- A flat array of vertice coordinates. holeIndices -- An array of hole indices if any. dim -- The number of coordinates per vertice in the input array.
	*/
	open fun triangulate() : Array
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy