14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/extract_submesh.h>
18#include <lagrange/SurfaceMesh.h>
19#include <lagrange/utils/span.h>
82template <
typename Scalar,
typename Index>
84 const SurfaceMesh<Scalar, Index>& mesh,
85 span<const Index> selected_facets,
86 const SubmeshOptions& options = {});
SurfaceMesh< Scalar, Index > extract_submesh(const SurfaceMesh< Scalar, Index > &mesh, span< const Index > selected_facets, const SubmeshOptions &options={})
Extract a submesh that consists of a subset of the facets of the source mesh.
Definition: extract_submesh.cpp:26
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Options for extract submesh.
Definition: extract_submesh.h:36
std::string_view source_facet_attr_name
The name of the output attribute holding source facet indices.
Definition: extract_submesh.h:45
bool map_attributes
Map all attributes over to submesh.
Definition: extract_submesh.h:48
std::string_view source_vertex_attr_name
The name of the output attribute holding source vertex indices.
Definition: extract_submesh.h:40
SubmeshOptions(const T &options)
Explicit conversion from other compatible option structs.
Definition: extract_submesh.h:60