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:
- meshtuple[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_lengthfloat
The target edge length.
- protected_edgeslist[[int, int]]
A list of vertex pairs that identify protected edges of the mesh.
- number_of_iterationsint, optional
Number of remeshing iterations.
- do_projectbool, optional
Reproject vertices onto the input surface when they are created or displaced.
- meshtuple[sequence[[float, float, float] |
- Returns:
- list[[float, float, float]]
Vertices of the remeshed mesh.
- list[[int, int, int]]
Faces of the remeshed mesh.