fromSegments
fun fromSegments(segments: List<Segment3D>, closed: Boolean, distanceTolerance: Double = 0.001): Path3D(source)
Constructs a Path3D instance from a list of 3D segments.
Return
a Path3D instance constructed from the segments
Parameters
segments
the list of 3D segments that define the path
closed
a boolean indicating whether the path is closed
distanceTolerance
the maximum allowable squared distance between segment endpoints for the path, default is 1E-3
Throws
if the distance between consecutive segment ends and starts exceeds the specified tolerance