psegments3d function

Draw segments on a 3D plot