xugrid.Ugrid2d.intersect_edges#
- Ugrid2d.intersect_edges(edges: ndarray)[source]#
Find in which face edges are located and compute the intersection with the face edges.
- Parameters:
edges (ndarray of floats with shape
(n_edge, 2, 2)
) – The first dimensions represents the different edges. The second dimensions represents the start and end of every edge. The third dimensions reresent the x and y coordinate of every vertex.- Returns:
edge_index (ndarray of integers with shape
(n_intersection,)
)face_index (ndarray of integers with shape
(n_intersection,)
)intersections (ndarray of float with shape
(n_intersection, 2, 2)
)