mymesh.delaunay.ConvexHull#

mymesh.delaunay.ConvexHull(NodeCoords, method='scipy', OrientSurf=True)[source]#

Identify the convex hull of a set of points. For a 2D point set (np.shape(NodeCoords) = (n,2)), a 2D convex hull of line elements will be generated. For a 3D point set (np.shape(NodeCoords) = (n,2)), a 3D convex hull of triangle elements will be generated.

Parameters:
  • NodeCoords (array_like) – Coordinates of points around which the convex hull will be identified. If shape = (n,2), a 2D convex hull will be identified, or if shape = (n,3) a 3D convex hull will be identified.

  • method (str, optional) –

    Convex hull method, by default ‘scipy’.

  • OrientSurf (str, optional) – Ensure the normals of the convex hull are consistently oriented outward, by default True.

Returns:

Hull – Mesh object containing the convex hull. Hull.Type='line' for a 2D hull or Hull.Type='surf' for a 3D hull.

Return type:

mymesh.mesh