Easy3D 2.6.1
Loading...
Searching...
No Matches
SurfaceMeshTopology Class Reference

Compute various topological characteristics of a surface mesh component. More...

#include <easy3d/algo/surface_mesh_topology.h>

Public Member Functions

 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.
 

Detailed Description

Compute various topological characteristics of a surface mesh component.

Constructor & Destructor Documentation

◆ SurfaceMeshTopology()

SurfaceMeshTopology ( const SurfaceMeshComponent * comp)
explicit

Construct with the surface mesh component to analyze.

Parameters
compThe surface mesh component to analyze.

Member Function Documentation

◆ euler_poincare()

int euler_poincare ( ) const

Returns the Euler-Poincare characteristic.

Returns
1 for a disc, 2 for a sphere.

◆ is_closed()

bool is_closed ( ) const
inline

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()

bool is_disc ( ) const
inline

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()

bool is_sphere ( ) const
inline

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()

bool is_torus ( ) const
inline

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: