newton.geometry.remesh_mesh#
- newton.geometry.remesh_mesh(mesh, method='quadratic', recompute_inertia=False, inplace=False, **remeshing_kwargs)[source]#
Remeshes a Mesh object using the specified remeshing method.
- Parameters:
mesh (Mesh) – The mesh to be remeshed.
method (RemeshingMethod, optional) – The remeshing method to use. One of “ftetwild”, “quadratic”, “convex_hull”, or “alphashape”. Defaults to “quadratic”.
recompute_inertia (bool, optional) – If True, recompute the mass, center of mass, and inertia tensor of the mesh after remeshing. Defaults to False.
inplace (bool, optional) – If True, modify the mesh in place. If False, return a new mesh instance with the remeshed geometry. Defaults to False.
**remeshing_kwargs – Additional keyword arguments passed to the remeshing function.
- Returns:
The remeshed mesh. If inplace is True, returns the modified input mesh.
- Return type: