mesh_contours_numpy

compas.datastructures.mesh_contours_numpy(mesh, levels=50)[source]

Compute the contours of the mesh.

Parameters:
meshcompas.datastructures.Mesh

The mesh object.

levelsint, optional

The number of contours.

Returns:
list[float]

A list of levels.

list[list[float]]

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

Notes

The contours are defined as the isolines of the z-coordinates of the vertices of the mesh.