trimesh_isolines
- trimesh_isolines(M, scalars, isovalues)[source]
Compute isolines on a triangle mesh.
- Parameters:
- Mtuple[list[list[float]], list[list[int]]]
A mesh represented by a tuple of (vertices, faces) where vertices are 3D points and faces are triangles
- scalarslist[float]
A list of scalar values, one per vertex of the mesh.
- isovalueslist[float]
The values at which to compute the isolines. Each value should be within the range of the scalar field.
- Returns:
- tuple[list[list[float]], list[list[int]], list[int]]
A tuple containing:
The coordinates of the isoline vertices
The edges between these vertices forming the isolines
An index per edge indicating to which isoline it belongs
Notes
The input mesh should be triangulated for accurate results.