Add check for XZ segmentations to use the right local coordinates. Unlike acts, the conversion to the local system isn't going from 3D -> 2D. Thefore there is one coordinate that is zero. Which one depends on the the segmentation type XY, XZ, etc. For XY the Z-coordinate is zero. For the XZ, the Y-coordinate is zero.