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 of vertices and faces) – The mesh to remesh.

  • target_edge_length (float) – The target edge length.

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

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

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

Returns

list – The vertices and faces of the new mesh.