Global attributes
barycenter(mesh)
Barycenter of the vertices of the mesh
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
Mesh
|
input mesh |
required |
Returns:
Name | Type | Description |
---|---|---|
Vec |
Vec
|
coordinates of the barycenter |
euler_characteristic(mesh)
Computes the Euler characteristic of a surface mesh, given as V-E+F
See https://en.wikipedia.org/wiki/Euler_characteristic
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
SurfaceMesh
|
the mesh |
required |
Returns:
Type | Description |
---|---|
int
|
the Euler characteristic |
mean_cell_volume(mesh, n=None)
Estimation of mean cell volume
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
VolumeMesh
|
input mesh |
required |
n
|
int
|
Early stopping for number of cells to consider in mean computation. If set to None, considers all the cells. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
the computed mean cell volume |
mean_edge_length(mesh, n=None)
Estimation of mean edge length
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
Mesh
|
input mesh |
required |
n
|
int
|
Early stopping for number of edges to consider in mean computation. If set to None, considers all the edges. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
the computed mean edge length |
mean_face_area(mesh, n=None)
Estimation of mean face area
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
Mesh
|
input mesh |
required |
n
|
int
|
Early stopping for number of faces to consider in mean computation. If set to None, considers all the faces. Defaults to None. |
None
|
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
the computed mean face area |
total_area(mesh)
Sum of face areas
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mesh
|
Mesh
|
input mesh |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
the computed mean face area |