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 = {});
114template <
typename Scalar,
typename Index>
133template <
typename Scalar,
typename Index>
135 SurfaceMesh<Scalar, Index>& mesh,
136 const Eigen::Transform<Scalar, 3, Eigen::Affine>& transformation,
137 FacetVectorAreaOptions options = {});
164template <
typename Scalar,
typename Index>
183template <
typename Scalar,
typename Index,
int Dimension>
185 const SurfaceMesh<Scalar, Index>& mesh,
186 const Eigen::Transform<Scalar, Dimension, Eigen::Affine>& transformation,
187 MeshAreaOptions options = {});
203template <
typename Scalar,
typename Index>
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:73
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
Scalar compute_uv_area(const SurfaceMesh< Scalar, Index > &mesh, MeshAreaOptions options={})
Compute UV mesh area.
Definition compute_area.cpp:429
AttributeId compute_facet_area(SurfaceMesh< Scalar, Index > &mesh, FacetAreaOptions options={})
Compute per-facet area.
Definition compute_area.cpp:307
Scalar compute_mesh_area(const SurfaceMesh< Scalar, Index > &mesh, MeshAreaOptions options={})
Compute mesh area.
Definition compute_area.cpp:407
AttributeId compute_facet_vector_area(SurfaceMesh< Scalar, Index > &mesh, FacetVectorAreaOptions options={})
Compute per-facet vector area.
Definition compute_area.cpp:325
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
Option struct for computing per-facet vector area.
Definition compute_area.h:81
std::string_view output_attribute_name
Output attribute name for facet vector area.
Definition compute_area.h:83
Option struct for computing mesh area.
Definition compute_area.h:143
std::string_view input_attribute_name
Precomputed facet area attribute name.
Definition compute_area.h:146
bool use_signed_area
For 2D mesh only: whether the computed facet area (if any) should be signed.
Definition compute_area.h:149