Basic tools for topology and geometry: translations, polarity, ...
More...
#include <PolyhedralAlgorithms_Rn.h>
|
static int | Translate (boost::shared_ptr< Polytope_Rn > &pol, const boost::numeric::ublas::vector< double > &v2t) |
| Translate a polytope by the given vector. More...
|
|
static int | GravityCenter (boost::shared_ptr< Polytope_Rn > &pol, boost::numeric::ublas::vector< double > &gravity_center) |
| Compute the gravity center of a given polytope. More...
|
|
static int | scalingFactor (boost::shared_ptr< Polytope_Rn > &pol, double factor) |
| Multiply a polytope by a given real number. More...
|
|
static int | PolarPolytope (const boost::shared_ptr< Polytope_Rn > &original_pol, boost::shared_ptr< Polytope_Rn > &polar_pol, bool forceComputation=true, double bb_size=1000.) throw (invalid_argument) |
| Compute the polar polytope. More...
|
|
static int | projectPolytopeOnCanonicalHyperplanes (const std::set< unsigned int > &listOfHyperplanes, const boost::shared_ptr< Polytope_Rn > &original_pol, boost::shared_ptr< Polytope_Rn > &proj_pol) throw (invalid_argument) |
| Compute the projection of a polytope on the intersection of canonical hyperplanes of the shape xi = 0 More...
|
|
static int | extrudeInCanonicalDirections (const std::set< unsigned int > &originalSpaceDirections, unsigned int dimensionOfTotalSpace, const boost::shared_ptr< Polytope_Rn > &original_polytope, boost::shared_ptr< PolyhedralCone_Rn > &extruded_polyhedron) throw (invalid_argument) |
| Compute the extrusion of a polytope belonging to a space S1 into a higher dimension space S2 following the canonical direction. More...
|
|
Basic tools for topology and geometry: translations, polarity, ...
Definition at line 325 of file PolyhedralAlgorithms_Rn.h.
int TopGeomTools::extrudeInCanonicalDirections |
( |
const std::set< unsigned int > & |
originalSpaceDirections, |
|
|
unsigned int |
dimensionOfTotalSpace, |
|
|
const boost::shared_ptr< Polytope_Rn > & |
original_polytope, |
|
|
boost::shared_ptr< PolyhedralCone_Rn > & |
extruded_polyhedron |
|
) |
| |
throw | ( | invalid_argument |
| ) | | |
|
static |
Compute the extrusion of a polytope belonging to a space S1 into a higher dimension space S2 following the canonical direction.
- Parameters
-
originalSpaceDirections | The set of indices describing the space S1 |
original_polytope | The input polytope |
extruded_polyhedron | The unbounded output polyhedron |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1395 of file PolyhedralAlgorithms_Rn.cpp.
int TopGeomTools::GravityCenter |
( |
boost::shared_ptr< Polytope_Rn > & |
pol, |
|
|
boost::numeric::ublas::vector< double > & |
gravity_center |
|
) |
| |
|
static |
Compute the gravity center of a given polytope.
- Parameters
-
pol | The corresponding polytope |
gravity_center | The gravity center coordinates |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1219 of file PolyhedralAlgorithms_Rn.cpp.
int TopGeomTools::PolarPolytope |
( |
const boost::shared_ptr< Polytope_Rn > & |
original_pol, |
|
|
boost::shared_ptr< Polytope_Rn > & |
polar_pol, |
|
|
bool |
forceComputation = true , |
|
|
double |
bb_size = 1000. |
|
) |
| |
throw | ( | invalid_argument |
| ) | | |
|
static |
Compute the polar polytope.
- Parameters
-
original_pol | The input polytope |
polar_pol | The polar polytope |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1254 of file PolyhedralAlgorithms_Rn.cpp.
int TopGeomTools::projectPolytopeOnCanonicalHyperplanes |
( |
const std::set< unsigned int > & |
listOfHyperplanes, |
|
|
const boost::shared_ptr< Polytope_Rn > & |
original_pol, |
|
|
boost::shared_ptr< Polytope_Rn > & |
proj_pol |
|
) |
| |
throw | ( | invalid_argument |
| ) | | |
|
static |
Compute the projection of a polytope on the intersection of canonical hyperplanes of the shape xi = 0
- Parameters
-
listOfHyperplanes | The set of indices describing the canonical hyperplanes |
original_pol | The input polytope |
proj_pol | The projected polytope |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
@
Definition at line 1344 of file PolyhedralAlgorithms_Rn.cpp.
int TopGeomTools::scalingFactor |
( |
boost::shared_ptr< Polytope_Rn > & |
pol, |
|
|
double |
factor |
|
) |
| |
|
static |
Multiply a polytope by a given real number.
- Parameters
-
pol | The corresponding polytope |
v2t | The scaling factor |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1234 of file PolyhedralAlgorithms_Rn.cpp.
int TopGeomTools::Translate |
( |
boost::shared_ptr< Polytope_Rn > & |
pol, |
|
|
const boost::numeric::ublas::vector< double > & |
v2t |
|
) |
| |
|
static |
Translate a polytope by the given vector.
- Parameters
-
pol | The corresponding polytope |
v2t | The translation vector |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1199 of file PolyhedralAlgorithms_Rn.cpp.
The documentation for this class was generated from the following files: