politopix
4.1.0
|
Model a normal fan. More...
#include <NormalFan_Rn.h>
Public Member Functions | |
NormalFan_Rn () | |
Constructor. More... | |
NormalFan_Rn (const boost::shared_ptr< Polytope_Rn > &A) | |
Constructor. More... | |
~NormalFan_Rn () | |
Destructor. More... | |
unsigned int | numberOfPolyhedralCones () const |
Get the total number of polyhedral cones. More... | |
void | addPolyhedralCone (boost::shared_ptr< PolyhedralCone_Rn > hs) |
Add the current half-space in its list. More... | |
void | addVertex (boost::shared_ptr< Generator_Rn > vx) |
Add the current vertex in its list. More... | |
const std::vector < boost::shared_ptr < Generator_Rn > > & | getListOfGenerators () const |
const std::vector < boost::shared_ptr < PolyhedralCone_Rn > > & | getListOfPolyhedralCones () const |
bool | checkTopologyAndGeometry () const throw (std::domain_error) |
void | computeCommonRefinement (const NormalFan_Rn &NA, const NormalFan_Rn &NB) |
Compute ![]() | |
void | computeHyperplanesSeparationForProjection (const std::vector< boost::shared_ptr< HalfSpace_Rn > > &, boost::shared_ptr< Polytope_Rn > &) |
void | dump (std::ostream &out) const |
Dump the polyhedral structure on std::cout. More... | |
Protected Attributes | |
std::vector< boost::shared_ptr < PolyhedralCone_Rn > > | _listOfPolyhedralCones |
The list of polyhedral cones partitioning the whole space. More... | |
std::vector< boost::shared_ptr < Generator_Rn > > | _listOfVertices |
The list of vertices attached to their respective dual polyhedral cones. More... | |
Friends | |
class | constIteratorOfListOfPolyhedralCones |
Model a normal fan.
Definition at line 37 of file NormalFan_Rn.h.
|
inline |
Constructor.
Definition at line 42 of file NormalFan_Rn.h.
NormalFan_Rn::NormalFan_Rn | ( | const boost::shared_ptr< Polytope_Rn > & | A | ) |
Constructor.
Definition at line 31 of file NormalFan_Rn.cpp.
|
inline |
Destructor.
Definition at line 48 of file NormalFan_Rn.h.
|
inline |
Add the current half-space in its list.
Definition at line 54 of file NormalFan_Rn.h.
|
inline |
Add the current vertex in its list.
Definition at line 57 of file NormalFan_Rn.h.
bool NormalFan_Rn::checkTopologyAndGeometry | ( | ) | const | |
throw | ( | std::domain_error | ||
) |
Definition at line 70 of file NormalFan_Rn.cpp.
void NormalFan_Rn::computeCommonRefinement | ( | const NormalFan_Rn & | NA, |
const NormalFan_Rn & | NB | ||
) |
Compute .
Compute the intersection of all polyhedral cones from the first normal fan N(A) with all polyhedral cones from the second normal fan N(B).
NA | The first normal fan computed from polytope A |
NB | The second normal fan computed from polytope B |
Definition at line 174 of file NormalFan_Rn.cpp.
void NormalFan_Rn::computeHyperplanesSeparationForProjection | ( | const std::vector< boost::shared_ptr< HalfSpace_Rn > > & | allHS, |
boost::shared_ptr< Polytope_Rn > & | Pol | ||
) |
@
@
@
@
@
@
@
@
Definition at line 74 of file NormalFan_Rn.cpp.
void NormalFan_Rn::dump | ( | std::ostream & | out | ) | const |
Dump the polyhedral structure on std::cout.
Definition at line 269 of file NormalFan_Rn.cpp.
|
inline |
|
inline |
|
inline |
Get the total number of polyhedral cones.
Definition at line 51 of file NormalFan_Rn.h.
|
friend |
Definition at line 38 of file NormalFan_Rn.h.
|
protected |
The list of polyhedral cones partitioning the whole space.
Definition at line 86 of file NormalFan_Rn.h.
|
protected |
The list of vertices attached to their respective dual polyhedral cones.
Definition at line 88 of file NormalFan_Rn.h.