discretize.TreeMesh.get_cells_along_line#

TreeMesh.get_cells_along_line(self, x0, x1)#

Find the cells in order along a line segment.

Parameters:
x0,x1(dim) array_like

Begining and ending point of the line segment.

Returns:
list of int

Indices for cells that contain the a line defined by the two input points, ordered in the direction of the line.