mymesh.delaunay.Tetrahedralize#
- mymesh.delaunay.Tetrahedralize(NodeCoords, method=None, tol=1e-08)[source]#
Generate a Delaunay tetrahedralization for a 3D set of points. This will be a strictly convex tetrahedralization.
- Parameters:
NodeCoords (array_like) – Coordinates of nodes to be triangulated. This can be an (n,3) or (n,2) array_like, however if given as an (n,3), the third dimension is ignored.
Constraints (array_like, optional) – List of edge constraints that must be present in the final triangulation, by default None. Edge constraints should be specified by node indices, for example [[0, 1], [1,2], …]
method (str, optional) –
Triangulation method, by default ‘scipy’.
’BowyerWatson’ - Generate a Delaunay triangulation by the Bowyer-Watson algorithm (
BowyerWatson3d()
)’scipy’ - Use
scipy.spatial.Delaunay
- Returns:
T – Mesh object containing the tetrahedralized mesh.
- Return type: