Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Scipy获取三维凸面外壳的侧面_Python_Scipy_Geometry_Delaunay - Fatal编程技术网

Python Scipy获取三维凸面外壳的侧面

Python Scipy获取三维凸面外壳的侧面,python,scipy,geometry,delaunay,Python,Scipy,Geometry,Delaunay,我用Scipy Delaunay来计算一组点的3D凸包,我想得到一个由3个点定义的所有外部边三角形的列表,有人知道如何获得这些信息吗? 谢谢 代码: 如果您查看helptri,您将看到tri的所有属性的列表。我认为您要查找的属性是tri.凸包,它给出属于凸包的点的索引。因此,要获得实际的顶点,您将使用 colors[tri.convex_hull] 如果您查看helptri,您将看到tri的所有属性的列表。我认为您要查找的属性是tri.凸包,它给出属于凸包的点的索引。因此,要获得实际的顶点,您

我用Scipy Delaunay来计算一组点的3D凸包,我想得到一个由3个点定义的所有外部边三角形的列表,有人知道如何获得这些信息吗? 谢谢

代码:

如果您查看helptri,您将看到tri的所有属性的列表。我认为您要查找的属性是tri.凸包,它给出属于凸包的点的索引。因此,要获得实际的顶点,您将使用

colors[tri.convex_hull]
如果您查看helptri,您将看到tri的所有属性的列表。我认为您要查找的属性是tri.凸包,它给出属于凸包的点的索引。因此,要获得实际的顶点,您将使用

colors[tri.convex_hull]
现在,@adrienlucca.wordpress.com!现在,@adrienlucca.wordpress.com!