discretize.TreeMesh.edge_lengths#

TreeMesh.edge_lengths#

Returns the lengths of all edges in the mesh.

Calling this property will compute and return the lengths of all edges in the mesh.

Returns:
(n_edges) numpy.ndarray

The length of the quantity returned depends on the dimensions of the mesh:

  • 2D: returns the x-edge and y-edge lengths in order

  • 3D: returns the x, y and z-edge lengths in order