mymesh.delaunay.SciPy#
- mymesh.delaunay.SciPy(NodeCoords, FixVol=True)[source]#
Wrapper for
scipy.spatial.Delaunayfor 2D triangulation or 3D tetrahedralization.- Parameters:
NodeCoords (array_like) – (n,2) or (n,3) node coordinates for the triangulation. Triangulation is only based on the coordinates in the first two dimensions, if an (n,3) is provided, the coordinates of the third column is ignored.
FixVol (bool, optional) – By default some of the signed volumes of the tetrahedra are negative, this option reorders the node connectivity to correct this, by default True.
- Returns:
NodeConn – mx3 array of node connectivity for the triangles
- Return type:
np.ndarray