Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ordering or exterior to interior ordering. It allows tracking of boundaries and of surfaces.
More...
#include <DGtal/topology/SurfelAdjacency.h>
template<Dimension dim>
class DGtal::SurfelAdjacency< dim >
Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ordering or exterior to interior ordering. It allows tracking of boundaries and of surfaces.
Description of class 'SurfelAdjacency'
- Template Parameters
-
dim | the number of dimension of the space. |
NB: backported from ImaGene.
- Examples
- dec/exampleDECSurface.cpp.
Definition at line 65 of file SurfelAdjacency.h.
◆ ~SurfelAdjacency()
◆ SurfelAdjacency() [1/2]
Constructor.
- Parameters
-
int2ext | when 'true', the surfel adjacency is interior to exterior for any coordinate pair, when 'false', it is exterior to interior for any one. |
NB:
- See also
- setAdjacency to modify a specific pair or coordinates
◆ SurfelAdjacency() [2/2]
Copy constructor.
- Parameters
-
other | the object to clone. |
◆ getAdjacency()
Returns whether a coordinate pair is interior (true) or exterior (false) in the bel adjacency.
- Parameters
-
i | first coordinate. |
j | second coordinate ('j != i'). |
- Returns
- 'true' if the surfel adjacency is interior to exterior for the coordinate pair '(i,j)', 'false' when it is exterior to interior.
◆ isValid()
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ operator=()
Assignment.
- Parameters
-
- Returns
- a reference on 'this'.
◆ selfDisplay()
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ setAdjacency()
Set a coordinate pair as interior to exterior or exterior to interior in the surfel adjacency.
- Parameters
-
i | first coordinate. |
j | second coordinate (j != i). |
int2ext | when 'true', the surfel adjacency is interior to exterior for the coordinate pair '(i,j)', when 'false', it is exterior to interior. |
◆ myInt2Ext
Memorizes if the surfel adjacency is interior to exterior (true) or exterior to interior (false) for any pair (i,j). The index of the pair (i,j) is 'i * m_ks.dim() + j'.
Definition at line 147 of file SurfelAdjacency.h.
The documentation for this class was generated from the following file: