14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/polyddg/DifferentialOperators.h>
16#include <lagrange/polyddg/api.h>
21namespace lagrange::polyddg {
75template <
typename Scalar,
typename Index>
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
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:33
Options for compute_smooth_direction_field().
Definition compute_smooth_direction_field.h:30
std::string_view alignment_attribute
Name of a per-vertex 3-D tangent vector field attribute used as alignment constraints.
Definition compute_smooth_direction_field.h:43
double lambda
Stabilization weight for the VEM projection term in the connection Laplacian.
Definition compute_smooth_direction_field.h:36
std::string_view direction_field_attribute
Output attribute name for the smooth direction field (3-D vector, per vertex).
Definition compute_smooth_direction_field.h:54
uint8_t nrosy
Symmetry order of the direction field (e.g.
Definition compute_smooth_direction_field.h:33
double alignment_weight
Scaling factor for the spectral shift in the alignment solve, following the fieldgen formulation (Knö...
Definition compute_smooth_direction_field.h:51