discretize.base.BaseMesh.edge_tangents#

property BaseMesh.edge_tangents#

Unit tangent vectors for all mesh edges.

For a given edge, the unit tangent vector defines the path direction one would take if traveling along that edge. Calling edge_tangents returns a numpy.ndarray containing the unit tangent vectors for all edges in the mesh. For a 3D mesh, the array would have shape (n_edges, dim). The rows of the output are organized by x-edges, then y-edges, then z-edges vectors.

Returns:
(n_edges, dim) numpy.ndarray of float

Unit tangent vectors for all mesh edges