15#include <lagrange/SurfaceMesh.h>
52template <
typename Scalar,
typename Index>
69template <
typename Scalar,
typename Index,
int Dimension>
71 SurfaceMesh<Scalar, Index>& mesh,
72 const Eigen::Transform<Scalar, Dimension, Eigen::Affine>& transformation,
73 FacetAreaOptions options = {});
107template <
typename Scalar,
typename Index>
137template <
typename Scalar,
typename Index>
154template <
typename Scalar,
typename Index,
int Dimension>
156 const SurfaceMesh<Scalar, Index>& mesh,
157 const Eigen::Transform<Scalar, Dimension, Eigen::Affine>& transformation,
158 MeshAreaOptions options = {});
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
uint32_t AttributeId
Identified to be used to access an attribute.
Definition AttributeFwd.h:73
@ Scalar
Mesh attribute must have exactly 1 channel.
Definition AttributeFwd.h:56
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:361
AttributeId compute_facet_vector_area(SurfaceMesh< Scalar, Index > &mesh, FacetVectorAreaOptions options={})
Compute per-facet vector area.
Definition compute_area.cpp:322
Main namespace for Lagrange.
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
Definition compute_area.h:76
std::string_view output_attribute_name
Output attribute name for facet vector area.
Definition compute_area.h:78
Option struct for computing mesh area.
Definition compute_area.h:116
std::string_view input_attribute_name
Precomputed facet area attribute name.
Definition compute_area.h:119
bool use_signed_area
For 2D mesh only: whether the computed facet area (if any) should be signed.
Definition compute_area.h:122