11#ifndef EASY3D_ALGO_SURFACE_MESH_TOPOLOGY_H
12#define EASY3D_ALGO_SURFACE_MESH_TOPOLOGY_H
19 class SurfaceMeshComponent;
41 bool is_closed()
const {
return number_of_borders_ == 0; }
58 std::size_t number_of_borders_;
59 std::size_t largest_border_size_;
A connected component of a SurfaceMesh.
Definition: surface_mesh_components.h:27
Compute various topological characteristics of a surface mesh component.
Definition: surface_mesh_topology.h:23
bool is_disc() const
returns if the surface is topologically equivalent to a disk.
Definition: surface_mesh_topology.h:47
int euler_poincare() const
returns the Euler-Poincare characteristic, 1: a disc 2: a sphere
Definition: surface_mesh_topology.cpp:46
std::size_t largest_border_size() const
returns the number of edges in the largest border.
Definition: surface_mesh_topology.h:38
bool is_closed() const
returns if the surface is closed.
Definition: surface_mesh_topology.h:41
bool is_torus() const
returns if the surface is topologically equivalent to a torus.
Definition: surface_mesh_topology.h:53
bool is_cylinder() const
returns if the surface is topologically equivalent to a cylinder.
Definition: surface_mesh_topology.h:50
bool is_sphere() const
returns if the surface is topologically equivalent to a sphere.
Definition: surface_mesh_topology.h:44
std::size_t number_of_borders() const
returns 0 for a closed surface.
Definition: surface_mesh_topology.h:35
Definition: collider.cpp:182