Fuse Voronoi cells when they share the same property and then get non convex polytopes.
More...
#include <Voronoi_Rn.h>
|
static void | loadProp (const std::string &filename, std::vector< int > &propList) throw (std::ios_base::failure) |
|
Fuse Voronoi cells when they share the same property and then get non convex polytopes.
Definition at line 271 of file Voronoi_Rn.h.
VoronoiWithProperties::VoronoiWithProperties |
( |
| ) |
|
|
inline |
VoronoiWithProperties::VoronoiWithProperties |
( |
const std::vector< Point_Rn > & |
listOfSeeds, |
|
|
const std::vector< boost::shared_ptr< Polytope_Rn > > & |
listOfCells, |
|
|
const std::vector< int > & |
listOfProp |
|
) |
| |
|
inline |
Constructor
- Parameters
-
listOfSeeds | The list of seeds |
listOfCells | The list of cells associated to each seed |
listOfProp | The list of properties associated to each seed |
Definition at line 280 of file Voronoi_Rn.h.
VoronoiWithProperties::VoronoiWithProperties |
( |
const CellByCellVoronoiDistNgb & |
CBCVDN, |
|
|
const std::vector< int > & |
listOfProp |
|
) |
| |
|
inline |
Constructor
- Parameters
-
CBCVDN | The previously computed Voronoi diagram |
listOfProp | The list of properties associated to each seed |
Definition at line 293 of file Voronoi_Rn.h.
virtual VoronoiWithProperties::~VoronoiWithProperties |
( |
| ) |
|
|
inlinevirtual |
void VoronoiWithProperties::addHalfSpaceAndNeighbour |
( |
unsigned int |
cellCounter, |
|
|
boost::shared_ptr< HalfSpace_Rn > |
hs, |
|
|
unsigned int |
ngbCell |
|
) |
| |
|
inline |
void VoronoiWithProperties::allocateFacetNeighbours |
( |
| ) |
|
|
inline |
void VoronoiWithProperties::dumpFacetNeighbours |
( |
std::ostream & |
this_ostream | ) |
const |
void VoronoiWithProperties::dumpNeighbours |
( |
std::ostream & |
this_ostream | ) |
const |
bool VoronoiWithProperties::fuseCellsWithSameProperty |
( |
std::vector< std::vector< unsigned int > > & |
newListOfNonConvexPolytopes | ) |
|
throw | ( | std::length_error |
| ) | | |
Run the whole algorithm: refer to the base class.
Unite two neighbour cells when they share the same property.
Definition at line 751 of file Voronoi_Rn.cpp.
bool VoronoiWithProperties::fuseCellsWithSameProperty |
( |
std::vector< std::vector< boost::shared_ptr< Polytope_Rn > > > & |
newListOfNonConvexPolytopes | ) |
|
throw | ( | std::length_error |
| ) | | |
Unite two neighbour cells when they share the same property.
Definition at line 831 of file Voronoi_Rn.cpp.
void VoronoiWithProperties::loadCell |
( |
const std::string & |
filename | ) |
|
throw | ( | std::ios_base::failure |
| ) | | |
void VoronoiWithProperties::loadFacetNeighbours |
( |
const std::string & |
filename | ) |
|
throw | ( | std::length_error, |
| | std::ios_base::failure |
| ) | | |
void VoronoiWithProperties::loadProp |
( |
const std::string & |
filename, |
|
|
std::vector< int > & |
propList |
|
) |
| |
throw | ( | std::ios_base::failure |
| ) | | |
|
static |
Load the list of properties associated to the seeds.
- Parameters
-
filename | The file containing the properties |
propList | The list to store properties after being cleared |
Definition at line 618 of file Voronoi_Rn.cpp.
void VoronoiWithProperties::loadProperties |
( |
const std::string & |
filename | ) |
|
throw | ( | std::ios_base::failure |
| ) | | |
void VoronoiWithProperties::loadSeeds |
( |
const std::string & |
filename | ) |
|
throw | ( | std::ios_base::failure |
| ) | | |
void VoronoiWithProperties::loadSeeds |
( |
const std::vector< Point_Rn > & |
listOfPoints3D | ) |
|
|
inline |
std::vector< std::vector< std::pair<boost::shared_ptr<HalfSpace_Rn>, unsigned int> > > VoronoiWithProperties::_facetNeighbours |
|
protected |
For the current cell, store its neighbour numbers. _facetNeighbours[i] = { (H0, i0), (H1, i1), ... }.
Definition at line 346 of file Voronoi_Rn.h.
std::vector<int> VoronoiWithProperties::_listOfSeedProperties |
|
protected |
The list of properties associated to the seeds.
Definition at line 348 of file Voronoi_Rn.h.
std::vector< Point_Rn > VoronoiWithProperties::_listOfSeeds |
|
protected |
std::vector< boost::shared_ptr<Polytope_Rn> > VoronoiWithProperties::_listOfVoronoiCells |
|
protected |
The list of polytopes partitioning the whole space.
Definition at line 344 of file Voronoi_Rn.h.
The documentation for this class was generated from the following files: