trimesh_remesh_constrained

compas.geometry.trimesh_remesh_constrained(mesh, target_edge_length, protected_edges, number_of_iterations=10, do_project=True)[source]

Constrained remeshing of a triangle mesh.

Parameters
  • mesh (tuple[sequence[[float, float, float] | compas.geometry.Point], sequence[[int, int, int]]]) – A mesh represented by a list of vertices and a list of faces.

  • target_edge_length (float) – The target edge length.

  • protected_edges (list[[int, int]]) – A list of vertex pairs that identify protected edges of the mesh.

  • number_of_iterations (int, optional) – Number of remeshing iterations.

  • do_project (bool, optional) – Reproject vertices onto the input surface when they are created or displaced.

Returns

  • list[[float, float, float]] – Vertices of the remeshed mesh.

  • list[[int, int, int]] – Faces of the remeshed mesh.