discretize.TreeMesh.fill#

TreeMesh.fill#

How ‘filled’ the tree mesh is compared to the underlying tensor mesh.

This property outputs the ratio between the number of cells in the tree mesh and the number of cells in the underlying tensor mesh; where the underlying tensor mesh is equivalent to the uniform tensor mesh that uses the smallest cell size. Thus the output is a number between 0 and 1.

Returns:
float

A fractional percent denoting how ‘filled’ the tree mesh is