politopix
4.1.0
|
Class dedicated to degeneration processing when looking for neighbours.
Let A be a polytope of where k>n.
Let [vi, vj] be a segment of two vertices of A such as:
More...
#include <Neighbours_Rn.h>
Public Member Functions | |
Neighbours_Rn () | |
void | addGenerator (const std::vector< unsigned int > &commonFacets, unsigned int numbergenIN, unsigned int numbergenOUT, HalfSpace_Rn::State state) |
Tell whether a pseudo neighbor is a genuine one comparing set of half-spaces. More... | |
void | begin () |
Iterator function. More... | |
void | next () |
Iterator function. More... | |
void | checkIterator () |
Make sure we don't point on a generator with state ON. More... | |
bool | end () |
Iterator function. More... | |
unsigned int | currentGenInNumber () |
Iterator function. More... | |
unsigned int | currentGenOutNumber () |
Iterator function. More... | |
void | dump (std::ostream &ofs) |
Display the content on the stream passed as an argument. More... | |
Protected Attributes | |
unsigned int | _iterator |
A runner to iterate through the list of genuine neighbors. More... | |
std::vector< HalfSpace_Rn::State > | _GeneratorsState |
The pair of generators state. More... | |
std::vector< unsigned int > | _GeneratorsInNumber |
The generator numbers IN in a global list. More... | |
std::vector< unsigned int > | _GeneratorsOutNumber |
The generator numbers OUT in a global list. More... | |
std::vector< std::vector < unsigned int > > | _HSPerNewGenerators |
For each generator, store all raw pointers on their corresponding half-spaces. More... | |
Class dedicated to degeneration processing when looking for neighbours.
Let A be a polytope of where k>n.
Let [vi, vj] be a segment of two vertices of A such as:
We call [vi, vj] a pseudo-edge if it respects the first assumption. The question is: to which condition [vi, vj] is a genuine edge? Can we answer the question only by processing the pseudo-edges separated by the hyperplane ? The straight line , . So is a face of A of dimension at least 1. Let's assume [vi, vj] is not an edge of A, then it is not an edge of FA and we cannot have FA included neither in nor in as separates [vi, vj] . So separates FA and we can find an edge [va, vb] of FA such as:
As [va, vb] is an edge of FA, va and vb share in common the list of hyperplanes Hab . Hab contains the (n-1) half-spaces and others because the intersection does not define a straight line. So if [vi, vj] is not an edge of A, we can find a genuine edge [va, vb] , intersecting with , such as
Definition at line 59 of file Neighbours_Rn.h.
|
inline |
Definition at line 62 of file Neighbours_Rn.h.
|
inline |
Tell whether a pseudo neighbor is a genuine one comparing set of half-spaces.
commonFacets | the set of common half-spaces pointers between this and gen |
numbergenIN | the generator number candidate to be a genuine end of edge |
numbergenOUT | the generator number candidate to be the other genuine end of edge |
state | equal to HalfSpace_Rn::hs_IN_OR_OUT or HalfSpace_Rn::hs_ON according to the edge property |
Definition at line 69 of file Neighbours_Rn.h.
|
inline |
Iterator function.
Definition at line 128 of file Neighbours_Rn.h.
|
inline |
Make sure we don't point on a generator with state ON.
Definition at line 134 of file Neighbours_Rn.h.
|
inline |
Iterator function.
Definition at line 143 of file Neighbours_Rn.h.
|
inline |
Iterator function.
Definition at line 146 of file Neighbours_Rn.h.
|
inline |
Display the content on the stream passed as an argument.
Definition at line 149 of file Neighbours_Rn.h.
|
inline |
Iterator function.
Definition at line 140 of file Neighbours_Rn.h.
|
inline |
Iterator function.
Definition at line 131 of file Neighbours_Rn.h.
|
protected |
The generator numbers IN in a global list.
Definition at line 169 of file Neighbours_Rn.h.
|
protected |
The generator numbers OUT in a global list.
Definition at line 171 of file Neighbours_Rn.h.
|
protected |
The pair of generators state.
Definition at line 167 of file Neighbours_Rn.h.
|
protected |
For each generator, store all raw pointers on their corresponding half-spaces.
Definition at line 173 of file Neighbours_Rn.h.
|
protected |
A runner to iterate through the list of genuine neighbors.
Definition at line 165 of file Neighbours_Rn.h.