14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/polyddg/DifferentialOperators.h>
16#include <lagrange/polyddg/api.h>
22namespace lagrange::polyddg {
89template <
typename Scalar,
typename Index>
98template <
typename Scalar,
typename Index>
101 SmoothDirectionFieldOptions options = {});
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
Polygonal mesh discrete differential operators.
Definition DifferentialOperators.h:38
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
AttributeElement
Type of element to which the attribute is attached.
Definition AttributeFwd.h:26
@ Vertex
Per-vertex mesh attributes.
Definition AttributeFwd.h:28
LA_POLYDDG_API AttributeId compute_smooth_direction_field(SurfaceMesh< Scalar, Index > &mesh, const DifferentialOperators< Scalar, Index > &ops, SmoothDirectionFieldOptions options={})
Compute the globally smoothest n-direction field on a surface mesh.
Definition compute_smooth_direction_field.cpp:316
Options for compute_smooth_direction_field().
Definition compute_smooth_direction_field.h:31
std::string_view alignment_attribute
Name of an alignment constraint attribute used as soft constraints.
Definition compute_smooth_direction_field.h:58
double lambda
Stabilization weight for the VEM projection term in the connection Laplacian (vertex-based path only)...
Definition compute_smooth_direction_field.h:46
AttributeElement output_element_type
Controls where the output direction field is stored.
Definition compute_smooth_direction_field.h:42
std::optional< std::string_view > direction_field_attribute
Output attribute name for the smooth direction field.
Definition compute_smooth_direction_field.h:65
uint8_t nrosy
Symmetry order of the direction field (e.g.
Definition compute_smooth_direction_field.h:34