mesh_contours_numpy
-
compas.datastructures.
mesh_contours_numpy
(mesh, levels=None, density=100)[source] Compute the contours of the mesh.
- Parameters
mesh (Mesh) – The mesh object.
N (int, optional) – The density of the contours. Default is
50
.
- Returns
tuple – A tuple of a list of levels and 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.