mesh_isolines_numpy

compas.datastructures.mesh_isolines_numpy(mesh, attr_name, N=50)[source]

Compute the isolines of a specified attribute of the vertices of a mesh.

Parameters:
meshcompas.datastructures.Mesh

A mesh object.

attr_namestr

The name of the vertex attribute.

Nint, optional

The density of the isolines.

Returns:
list[float]

A list of levels.

list[list[float]]

A list of isolines. The list of levels contains the z-values at each of the isolines. Each isoline is a list of paths, and each path is a list polygons.