Alpha shapes in 3D

前端 未结 2 1102
鱼传尺愫
鱼传尺愫 2021-02-09 07:44

Is there an \"alpha shape\" function in 3 dimensions in python, other than the CGAL python bindings?

Alternatively, is there a way to extend the example below into 3D? <

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-09 08:06

    You are looking for a "concave hull". The marching cube algorithm can be used to find such a hull. You can find a full example here.

    Limitations: This approach works well if your data comes from a volumetric dataset or if you have a cloud of points that can easily be converted into a volumetric data set (voxel-like). This can be done relatively easily with a dense set of points using, for example, a spatial indexer like the scipy cKDTree, but you might end up scratching your head a bit to get a good result if you have a sparse cloud of points.

提交回复
热议问题