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 | computeScalingFactorForInclusion (boost::shared_ptr< Polytope_Rn > &pol1, boost::shared_ptr< Polytope_Rn > &pol2, double &sfactor) |
| Multiply a polytope pol1 is not included in in polytope pol2, compute the sclaing factor for pol2 to include pol1. More...
|
|
static int | scalingFactor (boost::shared_ptr< Polytope_Rn > &pol, double sfactor) |
| Multiply a polytope by a given real number. More...
|
|
static int | scalingFactor (boost::shared_ptr< PolyhedralCone_Rn > &pol, double sfactor) |
| Multiply a polyhedral cone 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.) |
| 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) |
| 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) |
| 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 323 of file PolyhedralAlgorithms_Rn.h.
◆ computeScalingFactorForInclusion()
int TopGeomTools::computeScalingFactorForInclusion |
( |
boost::shared_ptr< Polytope_Rn > & |
pol1, |
|
|
boost::shared_ptr< Polytope_Rn > & |
pol2, |
|
|
double & |
sfactor |
|
) |
| |
|
static |
Multiply a polytope pol1 is not included in in polytope pol2, compute the sclaing factor for pol2 to include pol1.
- Parameters
-
pol1 | The polytope which is not included into pol2 |
pol2 | The polytope to scale to contain pol1 |
sfactor | The scaling factor |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1283 of file PolyhedralAlgorithms_Rn.cpp.
◆ extrudeInCanonicalDirections()
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 |
|
) |
| |
|
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 1390 of file PolyhedralAlgorithms_Rn.cpp.
◆ GravityCenter()
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 1268 of file PolyhedralAlgorithms_Rn.cpp.
◆ PolarPolytope()
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. |
|
) |
| |
|
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 1428 of file PolyhedralAlgorithms_Rn.cpp.
◆ projectPolytopeOnCanonicalHyperplanes()
int TopGeomTools::projectPolytopeOnCanonicalHyperplanes |
( |
const std::set< unsigned int > & |
listOfHyperplanes, |
|
|
const boost::shared_ptr< Polytope_Rn > & |
original_pol, |
|
|
boost::shared_ptr< Polytope_Rn > & |
proj_pol |
|
) |
| |
|
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 \( i \in listOfHyperplanes \Leftrightarrow x_i = 0 \) |
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 1343 of file PolyhedralAlgorithms_Rn.cpp.
◆ scalingFactor() [1/2]
int TopGeomTools::scalingFactor |
( |
boost::shared_ptr< PolyhedralCone_Rn > & |
pol, |
|
|
double |
sfactor |
|
) |
| |
|
static |
Multiply a polyhedral cone by a given real number.
- Parameters
-
pol | The corresponding polyhedral cone |
sfactor | The scaling factor |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1327 of file PolyhedralAlgorithms_Rn.cpp.
◆ scalingFactor() [2/2]
int TopGeomTools::scalingFactor |
( |
boost::shared_ptr< Polytope_Rn > & |
pol, |
|
|
double |
sfactor |
|
) |
| |
|
static |
Multiply a polytope by a given real number.
- Parameters
-
pol | The corresponding polytope |
sfactor | The scaling factor |
- Returns
- TEST_OK or 0 if the process was successful, TEST_KO or -1 if something went wrong.
Definition at line 1311 of file PolyhedralAlgorithms_Rn.cpp.
◆ Translate()
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 1248 of file PolyhedralAlgorithms_Rn.cpp.
The documentation for this class was generated from the following files: