mymesh.delaunay.Triangle#

mymesh.delaunay.Triangle(NodeCoords, Constraints=None)[source]#

Interface to Jonathan Shewchuk’s Triangle via a python wrapper (https://pypi.org/project/triangle/). To use, the python wrapper must be installed (pip install triangle).

Parameters:
  • NodeCoords (array_like) – Array of point coordinates

  • Constraints (array_like, optional) – Edge connectivity array of node indices that indicate edges to be ensured by constrained Delaunay triangulation, by default None

Returns:

NodeConn – mx3 array of node connectivities for the Delaunay triangulation

Return type:

np.ndarray