13#ifdef LAGRANGE_ENABLE_LEGACY_FUNCTIONS
14 #include <lagrange/legacy/compute_uv_distortion.h>
17#include <lagrange/SurfaceMesh.h>
18#include <lagrange/DistortionMetric.h>
57template <
typename Scalar,
typename Index>
uint32_t AttributeId
Identified to be used to access an attribute.
Definition: AttributeFwd.h:73
AttributeId compute_uv_distortion(SurfaceMesh< Scalar, Index > &mesh, const UVDistortionOptions &options={})
Compute uv distortion using the selected distortion measure.
Definition: compute_uv_distortion.cpp:30
DistortionMetric
UV distortion metric type.
Definition: DistortionMetric.h:26
@ MIPS
UV triangle area / 3D triangle area.
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Option struct for compute uv distortion.
Definition: compute_uv_distortion.h:33
DistortionMetric metric
The distortion measure.
Definition: compute_uv_distortion.h:41
std::string_view uv_attribute_name
Input UV indexed attribute name.
Definition: compute_uv_distortion.h:35
std::string_view output_attribute_name
The output attribute name.
Definition: compute_uv_distortion.h:38