Compute various topological characteristics of a surface mesh component.
More...
#include <easy3d/algo/surface_mesh_topology.h>
|
| | SurfaceMeshTopology (const SurfaceMeshComponent *comp) |
| | Construct with the surface mesh component to analyze.
|
| |
| int | euler_poincare () const |
| | Returns the Euler-Poincare characteristic.
|
| |
| std::size_t | number_of_borders () const |
| | Returns the number of borders.
|
| |
| std::size_t | largest_border_size () const |
| | Returns the number of edges in the largest border.
|
| |
| bool | is_closed () const |
| | Returns if the surface is closed.
|
| |
| bool | is_sphere () const |
| | Returns if the surface is topologically equivalent to a sphere.
|
| |
| bool | is_disc () const |
| | Returns if the surface is topologically equivalent to a disc.
|
| |
| bool | is_cylinder () const |
| | Returns if the surface is topologically equivalent to a cylinder.
|
| |
| bool | is_torus () const |
| | Returns if the surface is topologically equivalent to a torus.
|
| |
Compute various topological characteristics of a surface mesh component.
◆ SurfaceMeshTopology()
Construct with the surface mesh component to analyze.
- Parameters
-
| comp | The surface mesh component to analyze. |
◆ euler_poincare()
| int euler_poincare |
( |
| ) |
const |
Returns the Euler-Poincare characteristic.
- Returns
- 1 for a disc, 2 for a sphere.
◆ is_closed()
Returns if the surface is closed.
- Returns
- True if the surface is closed, false otherwise.
◆ is_cylinder()
| bool is_cylinder |
( |
| ) |
const |
|
inline |
Returns if the surface is topologically equivalent to a cylinder.
- Returns
- True if the surface is topologically equivalent to a cylinder, false otherwise.
◆ is_disc()
Returns if the surface is topologically equivalent to a disc.
- Returns
- True if the surface is topologically equivalent to a disc, false otherwise.
◆ is_sphere()
Returns if the surface is topologically equivalent to a sphere.
- Returns
- True if the surface is topologically equivalent to a sphere, false otherwise.
◆ is_torus()
Returns if the surface is topologically equivalent to a torus.
- Returns
- True if the surface is topologically equivalent to a torus, false otherwise.
◆ largest_border_size()
| std::size_t largest_border_size |
( |
| ) |
const |
|
inline |
Returns the number of edges in the largest border.
- Returns
- The number of edges in the largest border.
◆ number_of_borders()
| std::size_t number_of_borders |
( |
| ) |
const |
|
inline |
Returns the number of borders.
- Returns
- 0 for a closed surface.
The documentation for this class was generated from the following files: