fromPoints
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.