discretize.TreeMesh.get_cells_along_line#

TreeMesh.get_cells_along_line(self, x0, x1)#

Find the cells along a line segment defined by two points.

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.