14#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
15 #include <lagrange/legacy/thicken_and_close_mesh.h>
18#include <lagrange/SurfaceMesh.h>
33 std::variant<std::array<double, 3>, std::string_view>
direction =
"";
66template <
typename Scalar,
typename Index>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
Main namespace for Lagrange.
SurfaceMesh< Scalar, Index > thicken_and_close_mesh(SurfaceMesh< Scalar, Index > input_mesh, const ThickenAndCloseOptions &options={})
Thicken a mesh by offsetting it, and close the shape into a thick 3D solid.
Definition thicken_and_close_mesh.cpp:270
Options for thicken_and_close_mesh.
Definition thicken_and_close_mesh.h:29
std::variant< std::array< double, 3 >, std::string_view > direction
Offset direction.
Definition thicken_and_close_mesh.h:33
size_t num_segments
Number of segments used to split edges joining a vertex and its offset.
Definition thicken_and_close_mesh.h:47
double offset_amount
Offset amount along the specified direction.
Definition thicken_and_close_mesh.h:36
std::optional< double > mirror_ratio
Optional mirroring applied to the offset vertices.
Definition thicken_and_close_mesh.h:44
std::vector< std::string > indexed_attributes
List of indexed attributes to preserve (e.g. UVs). Values will be duplicated for offset vertices.
Definition thicken_and_close_mesh.h:50