mesh_smooth_area
- compas.datastructures.mesh_smooth_area(mesh, fixed=None, kmax=100, damping=0.5, callback=None, callback_args=None)[source]
Smooth a mesh by moving each vertex to the barycenter of the centroids of the surrounding faces, weighted by area.
- Parameters:
- mesh
compas.datastructures.Mesh
A mesh object.
- fixedlist[int], optional
The fixed vertices of the mesh.
- kmaxint, optional
The maximum number of iterations.
- dampingfloat, optional
The damping factor.
- callbackcallable, optional
A user-defined callback function to be executed after every iteration.
- callback_argslist[Any], optional
A list of arguments to be passed to the callback.
- mesh
- Returns:
- None
- Raises:
- Exception
If a callback is provided, but it is not callable.