ofWithDuplicatesRemoval

fun ofWithDuplicatesRemoval(leftVertices: NonEmptyList<Vector3D>, rightVertices: NonEmptyList<Vector3D>, tolerance: Double): Either<GeometryException.NotEnoughValidLinearRings, NonEmptyList<LinearRing3D>>

Creates multiple linear rings from two lists of vertices leftVertices and rightVertices. A list of linear rings are created by iterating over both lists jointly. Possible consecutively following point duplicates are removed before construction.

Parameters

leftVertices

left vertices for the linear rings construction

rightVertices

right vertices for the linear rings construction