To enhance the accuracy, efficiency, and safety of large-aperture non-spherical optical components, we have proposed a novel strategy for path planning and detection, which uses a non-contact optical probe suitable for spindle-rotating contourimeters. Our strategy leverages the contourimeter's working principle and the structural characteristics of the surface, transforming the three-dimensional collision problem into a two-dimensional detection space. To accomplish this, we first decompose the cross-section of the workpiece into a quadtree space and establish oriented bounding boxes for each sub-node. We then use the separation axis principle to ensure motion safety between the positions of the test points. Next, we utilize the ant colony optimization algorithm to plan the detection path and generate an interference-free scanning route that ensures safety during the detection process. Overall, our path-planning strategy significantly improves detection efficiency, while ensuring that the detection process is conducted safely. By combining these methods, we created a robust and effective approach to detecting large-aperture non-spherical optical components.