trimesh_isolines

compas.geometry.trimesh_isolines(M, S, N=50)[source]

Compute isolines on a triangle mesh using a scalarfield of data points assigned to its vertices.

Parameters
  • M (tuple or compas.datastructures.Mesh) – A mesh represented by a list of vertices and a list of faces or by a COMPAS mesh object.

  • S (list) – A list of scalars.

  • N (int, optional) – The number of isolines. Default is 50.

Returns

(list, list) – The coordinates of the polyline points and the segments of the polylines defined as pairs of points.

Examples

>>>

To convert the vertices and edges to sets of isolines, use groupsort_isolines()