36 if (numberOfFacets() == 0) {
37 std::string errorMessage(
"List of neighbour vertices not allocated in Generator_Rn::removeNeighbourVertex");
38 throw std::domain_error(errorMessage);
40 else if (j >= numberOfFacets()) {
42 throw std::out_of_range(errorMessage);
44 std::vector< boost::shared_ptr<HalfSpace_Rn> >::iterator itRemove = _supportFacets.begin() + j;
46 _supportFacets.erase(itRemove);
51 std::vector< boost::shared_ptr<HalfSpace_Rn> >::const_iterator it =
_supportFacets.begin();
std::vector< boost::shared_ptr< HalfSpace_Rn > > _supportFacets
Contain the list of all support facets.
bool isFacetInside(boost::shared_ptr< HalfSpace_Rn > F) const
Check whether the given half-space is inside the generator's list.
void removeFacet(unsigned int i)
Remove the i-th facet in list.
Generator_Rn(unsigned int n)
Creates a n-coordinates generator.
static std::string concatStrings(int i, const std::string &functionName)
Useful function to provide error message to the exception mechanism.
~Generator_Rn()
Destructor.
vector< double > _coordinates
The set of coordinates.