"""\nfrom panda3d.core import Point3\n\n# 输入的坐标列表\ncoordinates = [[71.69648742675781, -27.720195770263672, 1.9999998807907104], [71.69648742675781, -27.720195770263672, 68.0], [28.772136688232422, -25.16999053955078, 68.0], [28.772136688232422, -25.16999053955078, -3.000000238418579], [71.81509399414062, -25.723716735839844, 1.9999998807907104], [71.81509399414062, -25.723716735839844, 68.0], [28.890750885009766, -23.173511505126953, 68.0], [28.890750885009766, -23.173511505126953, -3.000000238418579]]\n\n# 转换坐标为point3类型\npoint3_coordinates = [Point3(x, y, z) for x, y, z in coordinates]\n"""\n现在,point3_coordinates列表中的所有坐标都已经被转换为Panda3D中的point3类型。您可以在程序中使用这个列表。\n


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

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