fromPoints

fun fromPoints(points: List<Vector3>, closed: Boolean): Path3D(source)

Constructs a Path3D object from a list of 3D points, optionally closing the path.

Parameters

points

A list of Vector3 representing the points that define the path.

closed

A boolean indicating whether the path should be closed, connecting the last point back to the first.