Automatic segmentation of point cloud data to facilitate intelligent machining and design modification