15#include <lagrange/SurfaceMesh.h>
16#include <lagrange/types/MappingPolicy.h>
17#include <lagrange/utils/span.h>
62template <
typename Scalar,
typename Index>
void remap_vertices(SurfaceMesh< Scalar, Index > &mesh, span< const Index > forward_mapping, RemapVerticesOptions options={})
Remap vertices of a mesh based on provided forward mapping.
Definition: remap_vertices.cpp:136
::nonstd::span< T, Extent > span
A bounds-safe view for sequences of objects.
Definition: span.h:27
Main namespace for Lagrange.
Definition: AABBIGL.h:30
MappingPolicy
Mapping policy control the behavior when two or more elements are mapped into the same output element...
Definition: MappingPolicy.h:21
Remap vertices options.
Definition: remap_vertices.h:32
CollisionPolicy collision_policy_integral
Collision policy for integral valued attributes.
Definition: remap_vertices.h:39
CollisionPolicy collision_policy_float
Collision policy for float or double valued attributes.
Definition: remap_vertices.h:36