Lagrange
MeshCentroidOptions Struct Reference

Option struct for computing mesh centroid. More...

#include <lagrange/compute_centroid.h>

Public Types

enum  WeightingType { Uniform , Area }
 Weighting type for mesh centroid computation. More...
 

Public Attributes

enum lagrange::MeshCentroidOptions::WeightingType weighting_type = Area
 
std::string_view facet_centroid_attribute_name = "@facet_centroid"
 Precomputed facet centroid attribute name. More...
 
std::string_view facet_area_attribute_name = "@facet_area"
 Precomputed facet area attribute name. More...
 

Detailed Description

Option struct for computing mesh centroid.

Member Enumeration Documentation

◆ WeightingType

Weighting type for mesh centroid computation.

Enumerator
Uniform 

Per-facet centroid are weighted uniformly.

Area 

Per-facet centroid are weighted by facet area.

Member Data Documentation

◆ facet_centroid_attribute_name

std::string_view facet_centroid_attribute_name = "@facet_centroid"

Precomputed facet centroid attribute name.

If the attribute does not exist, a temp attribute will be computed and stored in this name.

◆ facet_area_attribute_name

std::string_view facet_area_attribute_name = "@facet_area"

Precomputed facet area attribute name.

If the attribute does not exist, a temp attribute will be computed and stored in this name.


The documentation for this struct was generated from the following file: