trimesh_remesh

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

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.

number_of_iterationsint, optional

Number of remeshing iterations.

do_projectbool, 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.

Notes

This remeshing function only constrains the edges on the boundary of the mesh. To protect specific features or edges, please use remesh_constrained().