|
static polito_EXPORT int | savePolytope (const string &pathA, boost::shared_ptr< Polytope_Rn > &A) |
| Save a polytope in the corresponding file name. More...
|
|
static polito_EXPORT int | savePolyhedralCone (const string &pathA, boost::shared_ptr< PolyhedralCone_Rn > &A) |
| Save a polyhedral cone in the corresponding file name. More...
|
|
static polito_EXPORT int | loadPolytope (const string &pathA, boost::shared_ptr< Polytope_Rn > &A) |
| Load a polytope from the corresponding file name. More...
|
|
static polito_EXPORT int | loadPolyhedralCone (const string &pathA, boost::shared_ptr< PolyhedralCone_Rn > &A) |
| Load a polyhedral cone from the corresponding file name. More...
|
|
static polito_EXPORT int | addHalfspace (boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< HalfSpace_Rn > &HS) |
| Add a new half-space into the polytope data structure. More...
|
|
static polito_EXPORT int | addGenerator (boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Generator_Rn > &GN) |
| Add a new generator into the polytope data structure. More...
|
|
static polito_EXPORT int | computeDoubleDescription (boost::shared_ptr< Polytope_Rn > &A, double bb_size) |
| Compute the HV-description for a given H-polytope or V-polytope with the Double Description algorithm. More...
|
|
static polito_EXPORT int | computeDoubleDescription (boost::shared_ptr< Polytope_Rn > &A) |
| The same as computeDoubleDescription(A,bb_size) with bb_size=1000. for the boost python interface. More...
|
|
static polito_EXPORT int | computeDoubleDescriptionWithoutCheck (boost::shared_ptr< Polytope_Rn > &A, double bb_size=1000.) |
| Compute the HV-description for a given H-polytope or V-polytope with the Double Description algorithm. More...
|
|
static polito_EXPORT int | computeIntersection (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, boost::shared_ptr< Polytope_Rn > &C) |
| Compute the intersection between two HV-polytopes with the Double Description algorithm. More...
|
|
static polito_EXPORT int | computeIntersection (boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B) |
| Compute the intersection between two HV-polytopes with the Double Description algorithm. More...
|
|
static polito_EXPORT int | computeIntersectionWithoutCheck (boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B) |
| Compute the intersection between two HV-polytopes with the Double Description algorithm. More...
|
|
static polito_EXPORT bool | isIncluded (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B) |
| Test whether the polytope A V-description is inside the polytope B H-description. More...
|
|
static polito_EXPORT int | computeMinkowskiSumOfPolytopes (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, boost::shared_ptr< Polytope_Rn > &C) |
| Compute the Minkowski sum between two HV-polytopes. More...
|
|
static polito_EXPORT int | computeMinkowskiSumOfPolytopes (const std::vector< boost::shared_ptr< Polytope_Rn > > &arrayOfPol, boost::shared_ptr< Polytope_Rn > &C) |
| Compute the Minkowski sum of several HV-polytopes stored in an array. More...
|
|
static polito_EXPORT int | computeMinkowskiSumOfPolytopes (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, boost::shared_ptr< Polytope_Rn > &C, const std::vector< std::vector< int > > &genitorsOfGeneratorsA, const std::vector< std::vector< int > > &genitorsOfGeneratorsB, std::vector< std::vector< int > > &traceGenerators) |
| Compute the Minkowski sum between two HV-polytopes tracing the generators. More...
|
|
static polito_EXPORT int | checkEqualityOfPolytopes (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, bool getFaceMapping=false) |
| Check whether two HV-polytopes are identical Check whether the vertices of A are inside B half-spaces and vice-versa. Perform also some topological verifications. More...
|
|
static polito_EXPORT bool | checkEqualityOfVertices (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B) |
| Check whether two V-polytopes are identical Check whether the sets of vertices of A and B are equal. More...
|
|
static polito_EXPORT int | checkTopologyAndGeometry (const boost::shared_ptr< PolyhedralCone_Rn > &A, bool check_all=false) |
| Check whether a HV-polytopes is correct. More...
|
|
static polito_EXPORT int | makeCube (boost::shared_ptr< Polytope_Rn > &A, double M) |
| Create a cube whose vertices will be (+-M, ..., +-M) More...
|
|
static polito_EXPORT int | makeBox (boost::shared_ptr< Polytope_Rn > &A, Point_Rn Pmin, Point_Rn Pmax) |
| Create a box or rectangle parallelepiped whose corners are Pmin and Pmax. More...
|
|
static polito_EXPORT int | PolarPolytope (const boost::shared_ptr< Polytope_Rn > &original_pol, boost::shared_ptr< Polytope_Rn > &polar_pol) |
| Compute the polar polytope. More...
|
|
static polito_EXPORT int | Translate (boost::shared_ptr< Polytope_Rn > &pol, const boost::numeric::ublas::vector< double > &v2t) |
| Translate a polytope or polyhedral cone by the given vector. More...
|
|
static polito_EXPORT double | computeVolume (const boost::shared_ptr< Polytope_Rn > P) |
| Return the volume of the given polytope P with its double description. The implemented algorithm can be found in Volume Computation for Polytopes: Strategies and Performances by Andreas Enge in Encyclopedia of Optimization 2nd edition, p 4032-4073. More...
|
|
static polito_EXPORT int | pseudoIntersection (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, boost::shared_ptr< Polytope_Rn > &C, const std::set< unsigned int > &firstOperandCaps, const std::set< unsigned int > &secondOperandCaps, std::set< unsigned int > &newCaps, double bb_size=1000.) |
| Remove all cap half-spaces and then compute the intersection of two capped polytopes. More...
|
|
static polito_EXPORT int | pseudoSum (const boost::shared_ptr< Polytope_Rn > &A, const boost::shared_ptr< Polytope_Rn > &B, boost::shared_ptr< Polytope_Rn > &C, const std::set< unsigned int > &firstOperandCaps, const std::set< unsigned int > &secondOperandCaps, std::set< unsigned int > &newCaps, double bb_size=1000.) |
| Compute the Minkowski sum of two polytopes and then remove all cap half-spaces to truncate again. More...
|
|
static polito_EXPORT int | computeVoronoiDiagram (const boost::shared_ptr< Polytope_Rn > &inputSpace, const std::vector< Point_Rn > &listOfSeeds, std::vector< boost::shared_ptr< Polytope_Rn > > &VoronoiCells, Voronoi_Rn::TypeOfAlgorithm vorAlgo=Voronoi_Rn::Incremental) |
| Compute the Voronoi Diagram in a n-dimensional space i.e. a partitioning of an input space into regions based on distance to points called seeds. More...
|
|
The main class to run the basic API.
Definition at line 43 of file politopixAPI.h.