Skip to content

grid_surface builtin

grid_surface(model, column)

Triangulated surface from a gridded elevation, such as topography.

Parameters:

Name Type Description Default
model BlockModel

Regular or masked 2D model (one cell in z).

required
column str

Elevation of each block; nulls and NaN leave holes.

required

Returns:

Type Description
Mesh

One vertex per block with an elevation, at its center in plan. Four neighboring vertices make two triangles and three make one, facing up in an unrotated grid.

used in