Lagrange
|
Options for thicken_and_close_mesh. More...
#include <lagrange/thicken_and_close_mesh.h>
Public Attributes | |
std::variant< std::array< double, 3 >, std::string_view > | direction = "" |
Offset direction. More... | |
double | offset_amount = 1.0 |
Offset amount along the specified direction. | |
std::optional< double > | mirror_ratio |
Optional mirroring applied to the offset vertices. More... | |
size_t | num_segments = 1 |
Number of segments used to split edges joining a vertex and its offset. | |
std::vector< std::string > | indexed_attributes |
List of indexed attributes to preserve (e.g. UVs). Values will be duplicated for offset vertices. | |
Options for thicken_and_close_mesh.
std::variant<std::array<double, 3>, std::string_view> direction = "" |
Offset direction.
Can either be an attribute (e.g. vertex normal), or a constant direction. By default it will use the first vertex attribute with usage tag Normal
, or compute it if it does not exist.
std::optional<double> mirror_ratio |
Optional mirroring applied to the offset vertices.
The mirroring is computed wrt to the plane going through the origin along the offset direction. If this argument is set without setting a fixed offset direction, an exception is raised.