23#ifndef VCL_SPACE_COMPLEX_TRI_POLY_INDEX_BIMAP_H
24#define VCL_SPACE_COMPLEX_TRI_POLY_INDEX_BIMAP_H
26#include <vclib/types.h>
51 std::vector<uint> mTriToPoly;
52 std::vector<uint> mPolyToTri;
129 if (
pnext < mPolyToTri.size()) {
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The TriPolyIndexBiMap class allows to store a bidirectional mapping between a Polygon Mesh and a Tria...
Definition tri_poly_index_bimap.h:50
TriPolyIndexBiMap()=default
Creates an empty BiMap.
void reserve(uint nTriangles, uint nPolygons)
Reserves enogh memory for the BiMap. Allows fast insertions.
Definition tri_poly_index_bimap.h:155
uint triangleNumber() const
Returns the number of triangles stored in the BiMap.
Definition tri_poly_index_bimap.h:197
void insert(uint triangleIndex, uint polygonIndex)
Performs an insertion into the BiMap, and associates:
Definition tri_poly_index_bimap.h:175
void clear()
Clears the BiMap.
Definition tri_poly_index_bimap.h:142
uint polygon(uint triangleIndex) const
Returns the index of the polygon mapped to the triangle having the index given as input argument.
Definition tri_poly_index_bimap.h:67
uint triangleBegin(uint polygonIndex) const
Returns the smallest index of set of triangles mapped to the polygon having the index given as input ...
Definition tri_poly_index_bimap.h:83
uint polygonNumber() const
Returns the number of polygons stored in the BiMap.
Definition tri_poly_index_bimap.h:203
uint triangleNumber(uint polygonIndex) const
Returns the number of (consecutive index) triangles mapped to a polygon.
Definition tri_poly_index_bimap.h:112
constexpr uint UINT_NULL
The UINT_NULL value represent a null value of uint that is the maximum value that can be represented ...
Definition base.h:48