Generic class to run computations whether we have, polytopes, capped polytopes, prismatic polyhedra, ...
More...
#include <politopixAPI.h>
|
static int | sum (const boost::shared_ptr< T > &firstBody, const boost::shared_ptr< T > &secondBody, boost::shared_ptr< T > &result) |
|
static int | sum (const std::vector< boost::shared_ptr< T > > &allBodies, boost::shared_ptr< T > &result) |
|
static int | intersect (const boost::shared_ptr< T > &firstBody, const boost::shared_ptr< T > &secondBody, boost::shared_ptr< T > &result) |
|
static int | intersect (const std::vector< boost::shared_ptr< T > > &allBodies, boost::shared_ptr< T > &result) |
|
static bool | isIncluded (const boost::shared_ptr< T > &firstBody, const boost::shared_ptr< T > &secondBody) |
| Test whether firstBody is inside secondBody. More...
|
|
static bool | isIncluded (const boost::shared_ptr< T > &firstBody, const boost::shared_ptr< T > &secondBody, double &minmaxDistance) |
| Test whether firstBody is inside secondBody. More...
|
|
static void | resetConstantsOfAllHalfSpaces (boost::shared_ptr< T > &body, double cst) |
|
static int | scalingFactor (boost::shared_ptr< T > &body, double factor) |
|
static bool | checkTopologyAndGeometry (const boost::shared_ptr< T > &body) |
|
static std::string | getName () |
|
static std::string | getFileExtension () |
|
static void | save (const std::string &pathA, boost::shared_ptr< T > &body) |
|
static void | load (const std::string &pathA, boost::shared_ptr< T > &body, double bb_size=10000.) |
|
static void | dump (std::ostream ¤t_ostream, boost::shared_ptr< T > &body) |
|
template<class T>
class PolyhedralBody< T >
Generic class to run computations whether we have, polytopes, capped polytopes, prismatic polyhedra, ...
Definition at line 242 of file politopixAPI.h.
◆ checkTopologyAndGeometry()
template<class T >
static bool PolyhedralBody< T >::checkTopologyAndGeometry |
( |
const boost::shared_ptr< T > & |
body | ) |
|
|
inlinestatic |
◆ dump()
template<class T >
static void PolyhedralBody< T >::dump |
( |
std::ostream & |
current_ostream, |
|
|
boost::shared_ptr< T > & |
body |
|
) |
| |
|
inlinestatic |
◆ getFileExtension()
◆ getName()
◆ intersect() [1/2]
template<class T >
static int PolyhedralBody< T >::intersect |
( |
const boost::shared_ptr< T > & |
firstBody, |
|
|
const boost::shared_ptr< T > & |
secondBody, |
|
|
boost::shared_ptr< T > & |
result |
|
) |
| |
|
inlinestatic |
◆ intersect() [2/2]
template<class T >
static int PolyhedralBody< T >::intersect |
( |
const std::vector< boost::shared_ptr< T > > & |
allBodies, |
|
|
boost::shared_ptr< T > & |
result |
|
) |
| |
|
inlinestatic |
◆ isIncluded() [1/2]
template<class T >
static bool PolyhedralBody< T >::isIncluded |
( |
const boost::shared_ptr< T > & |
firstBody, |
|
|
const boost::shared_ptr< T > & |
secondBody |
|
) |
| |
|
inlinestatic |
Test whether firstBody is inside secondBody.
- Parameters
-
- Returns
- true if
\[ firstBody \subset secondBody \]
, false otherwise.
Definition at line 266 of file politopixAPI.h.
◆ isIncluded() [2/2]
template<class T >
static bool PolyhedralBody< T >::isIncluded |
( |
const boost::shared_ptr< T > & |
firstBody, |
|
|
const boost::shared_ptr< T > & |
secondBody, |
|
|
double & |
minmaxDistance |
|
) |
| |
|
inlinestatic |
Test whether firstBody is inside secondBody.
- Parameters
-
firstBody | |
secondBody | |
minmaxDistance | If
\[ projectionVertices(firstBody) \not\subset secondBody \]
minmaxDistance is the minimum distance from firstBody to secondBody, otherwise it is the maximum distance shift to apply to the half-spaces of secondBody to include firstBody. |
- Returns
- true if
\[ firstBody \subset secondBody \]
, false otherwise.
Definition at line 275 of file politopixAPI.h.
◆ load()
template<class T >
static void PolyhedralBody< T >::load |
( |
const std::string & |
pathA, |
|
|
boost::shared_ptr< T > & |
body, |
|
|
double |
bb_size = 10000. |
|
) |
| |
|
inlinestatic |
◆ resetConstantsOfAllHalfSpaces()
template<class T >
static void PolyhedralBody< T >::resetConstantsOfAllHalfSpaces |
( |
boost::shared_ptr< T > & |
body, |
|
|
double |
cst |
|
) |
| |
|
inlinestatic |
◆ save()
template<class T >
static void PolyhedralBody< T >::save |
( |
const std::string & |
pathA, |
|
|
boost::shared_ptr< T > & |
body |
|
) |
| |
|
inlinestatic |
◆ scalingFactor()
template<class T >
static int PolyhedralBody< T >::scalingFactor |
( |
boost::shared_ptr< T > & |
body, |
|
|
double |
factor |
|
) |
| |
|
inlinestatic |
◆ sum() [1/2]
template<class T >
static int PolyhedralBody< T >::sum |
( |
const boost::shared_ptr< T > & |
firstBody, |
|
|
const boost::shared_ptr< T > & |
secondBody, |
|
|
boost::shared_ptr< T > & |
result |
|
) |
| |
|
inlinestatic |
◆ sum() [2/2]
template<class T >
static int PolyhedralBody< T >::sum |
( |
const std::vector< boost::shared_ptr< T > > & |
allBodies, |
|
|
boost::shared_ptr< T > & |
result |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /mnt/c/Users/vindelos/Documents/TEST/TEST/co/politopix/trunk/politopixAPI.h