TriangulationAlgorithm

abstract class TriangulationAlgorithm

Abstract class for a triangulation algorithm in 3D. See the wikipedia article of polygon triangulation.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun triangulateChecked(vertices: NonEmptyList<Vector3D>, tolerance: Double): Either<TriangulatorException, List<Polygon3D>>

Performs the triangulation operation and checks whether all input vertices are still represented after triangulation.