15#include <lagrange/SurfaceMesh.h>
52template <
typename Scalar,
typename Index>
71template <
typename Scalar,
typename Index,
int Dimension>
73 SurfaceMesh<Scalar, Index>& mesh,
74 const Eigen::Transform<Scalar, Dimension, Eigen::Affine>& transformation,
75 FacetAreaOptions options = {});
102template <
typename Scalar,
typename Index>
121template <
typename Scalar,
typename Index,
int Dimension>
123 const SurfaceMesh<Scalar, Index>& mesh,
124 const Eigen::Transform<Scalar, Dimension, Eigen::Affine>& transformation,
125 MeshAreaOptions options = {});
uint32_t AttributeId
Identified to be used to access an attribute.
Definition: AttributeFwd.h:73
AttributeId compute_facet_area(SurfaceMesh< Scalar, Index > &mesh, FacetAreaOptions options={})
Compute per-facet area.
Definition: compute_area.cpp:304
Scalar compute_mesh_area(const SurfaceMesh< Scalar, Index > &mesh, MeshAreaOptions options={})
Compute mesh area.
Definition: compute_area.cpp:322
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Option struct for computing per-facet area.
Definition: compute_area.h:32
std::string_view output_attribute_name
Output attribute name for facet area.
Definition: compute_area.h:34
bool use_signed_area
For 2D mesh only: whether the computed area should be signed.
Definition: compute_area.h:37
Option struct for computing mesh area.
Definition: compute_area.h:81
std::string_view input_attribute_name
Precomputed facet area attribute name.
Definition: compute_area.h:84
bool use_signed_area
For 2D mesh only: whether the computed facet area (if any) should be signed.
Definition: compute_area.h:87