15#include <lagrange/find_matching_attributes.h>
16#include <lagrange/map_attribute.h>
17#include <lagrange/mesh_cleanup/remove_duplicate_vertices.h>
21template <
typename Scalar,
typename Index>
22void stitch_mesh(SurfaceMesh<Scalar, Index>& mesh)
30 RemoveDuplicateVerticesOptions rm_opts;
31 rm_opts.boundary_only =
true;
AttributeId map_attribute_in_place(SurfaceMesh< Scalar, Index > &mesh, AttributeId id, AttributeElement new_element)
Map attribute values to a different element type.
Definition map_attribute.cpp:270
@ Indexed
Indexed mesh attributes.
Definition AttributeFwd.h:45
@ Vertex
Per-vertex mesh attributes.
Definition AttributeFwd.h:28
std::vector< AttributeId > find_matching_attributes(const SurfaceMesh< Scalar, Index > &mesh, const AttributeMatcher &options)
Finds all attributes with the specified usage/element type/number of channels.
Definition find_matching_attributes.cpp:80
Mesh input/output.
Definition detect_file_format.h:18
void remove_duplicate_vertices(SurfaceMesh< Scalar, Index > &mesh, const RemoveDuplicateVerticesOptions &options={})
Removes duplicate vertices from a mesh.
Definition remove_duplicate_vertices.cpp:33