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