abstract class TriangulationAlgorithm: Any

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

Constructors

Name Description
constructor()

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

Methods

triangulateChecked

fun triangulateChecked(vertices: List<Vector3D>, tolerance: Double): Result, Exception><List<Polygon3D>, Exception>

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

Parameters

Name Description
vertices: List<Vector3D>

list of vertices representing the outline to be triangulated

tolerance: Double

ReturnValue

Name Description
Result, Exception><List<Polygon3D>, Exception>

list of triangulated Polygon3D