Correctly converting points from segmentpoint to XYZ point