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
  • mesh (Mesh) – A mesh object.

  • attr_name (str) – The name of the vertex attribute.

  • N (int, 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.