discretize.TreeMesh.get_cells_on_line#
- TreeMesh.get_cells_on_line(self, segment)#
Find the cells intersecting a line segment.
- Parameters:
- segment(2,
dim
) array_like Beginning and ending point of the line segment.
- segment(2,
- Returns:
numpy.ndarray
of
int
Indices for cells that intersect the line defined by the two input points.