11#ifndef EASY3D_ALGO_SURFACE_MESH_TOPOLOGY_H
12#define EASY3D_ALGO_SURFACE_MESH_TOPOLOGY_H
53 bool is_closed()
const {
return number_of_borders_ == 0; }
82 std::size_t number_of_borders_;
83 std::size_t largest_border_size_;
A connected component of a SurfaceMesh.
Definition surface_mesh_components.h:27
bool is_disc() const
Returns if the surface is topologically equivalent to a disc.
Definition surface_mesh_topology.h:65
int euler_poincare() const
Returns the Euler-Poincare characteristic.
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:47
bool is_closed() const
Returns if the surface is closed.
Definition surface_mesh_topology.h:53
bool is_torus() const
Returns if the surface is topologically equivalent to a torus.
Definition surface_mesh_topology.h:77
bool is_cylinder() const
Returns if the surface is topologically equivalent to a cylinder.
Definition surface_mesh_topology.h:71
bool is_sphere() const
Returns if the surface is topologically equivalent to a sphere.
Definition surface_mesh_topology.h:59
std::size_t number_of_borders() const
Returns the number of borders.
Definition surface_mesh_topology.h:41
SurfaceMeshTopology(const SurfaceMeshComponent *comp)
Construct with the surface mesh component to analyze.
Definition surface_mesh_topology.cpp:19
Definition collider.cpp:182