相关疑难解决方法(0)

来自SciPy的QHull凸壳体积

我正在尝试使用QHullSciPy包装器来获取一组点的凸包体积.

根据QHull文档,我应该通过"FA"选项来获得总表面积和体积.

这就是我得到的......我做错了什么?

> pts
     [(494.0, 95.0, 0.0), (494.0, 95.0, 1.0) ... (494.0, 100.0, 4.0), (494.0, 100.0, 5.0)]


> hull = spatial.ConvexHull(pts, qhull_options="FA")

> dir(hull)

     ['__class__', '__del__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_qhull', '_update', 'add_points', 'close', 'coplanar', 'equations', 'max_bound', 'min_bound', 'ndim', 'neighbors', 'npoints', 'nsimplex', 'points', 'simplices']

 > dir(hull._qhull)
     ['__class__', '__delattr__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__new__', …
Run Code Online (Sandbox Code Playgroud)

python scipy convex-hull qhull

12
推荐指数
2
解决办法
6624
查看次数

标签 统计

convex-hull ×1

python ×1

qhull ×1

scipy ×1