mymesh.delaunay.AlphaShape#
- mymesh.delaunay.AlphaShape(NodeCoords, alpha, method=None, Type='surf')[source]#
Alpha shapes in 2D or 3D
- Parameters:
NodeCoords (array_like) – Node coordinates. If coordinates are two dimensional (shape=(n,2)), a 2D alpha shape will be produce, for three dimensional coordinates, a 3D alpha shape will be produced.
alpha (float or list of floats) – Alpha value. If given as a list of values, a corresponding list of meshes will be returned
method (str, optional) – Delaunay triangulation/tetrahedralization method used to determine the alpha shape, by default None. See
Triangulate()
/Tetrahedralize()
for more details and the default method.Type (str, optional) – Type of the returned Mesh or Meshes, by default ‘surf’. Note that if using Type=’vol’, tetrahedral meshes may have small unnoticed holes that could pose problems for some applications.
- Returns:
M – Mesh of the alpha shape. If alpha is given as a list, a corresponding list of meshes will be returned.
- Return type:
mymesh.mesh or list of mymesh.mesh