bool\ isEqual(const\ Point&\ point1,\ const\ Point&\ point2)\ {\n\ \ \ return\ (point1.x\ ==\ point2.x\ &&\ point1.y\ ==\ point2.y\ &&\ point1.z\ ==\ point2.z);\n}\n\nbool\ isPointInPointCloud(const\ std::vector&\ pointCloud,\ const\ Point&\ point)\ {\n\ \ \ for\ (const\ auto&\ point9\ :\ pointCloud)\ {\n\ \ \ \ \ if\ (isEqual(point9,\ point))\ {\n\ \ \ \ \ \ \ std::cout\ <<\ "点p与点云文件内的点相同"\ <<\ std::endl;\n\ \ \ \ \ \ \ return\ true;\n\ \ \ \ \ }\n\ \ \ }\n\ \ \ return\ false;\n}\n

C++ 代码示例:判断点是否在点云文件中

原文地址: https://www.cveoy.top/t/topic/pzTV 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录