3D spinning disk segmentation code