//! Same as PrintVertices QList<QhullVertex> QhullFacetList:: vertices_toQList(int qhRunId) const { QList<QhullVertex> vs; QhullVertexSet qvs(qhRunId, first().getFacetT(), NULL, isSelectAll()); for(QhullVertexSet::iterator i=qvs.begin(); i!=qvs.end(); ++i){ vs.push_back(*i); } return vs; }//vertices_toQList
std::vector<QhullFacet> QhullFacetSet:: toStdVector() const { QhullSetIterator<QhullFacet> i(*this); std::vector<QhullFacet> vs; while(i.hasNext()){ QhullFacet f= i.next(); if(isSelectAll() || f.isGood()){ vs.push_back(f); } } return vs; }//toStdVector
QList<QhullFacet> QhullFacetSet:: toQList() const { QhullSetIterator<QhullFacet> i(*this); QList<QhullFacet> vs; while(i.hasNext()){ QhullFacet f= i.next(); if(isSelectAll() || f.isGood()){ vs.append(f); } } return vs; }//toQList
bool QhullFacetSet:: contains(const QhullFacet &facet) const { if(isSelectAll()){ return QhullSet<QhullFacet>::contains(facet); } for(QhullFacetSet::const_iterator i=begin(); i != end(); ++i){ QhullFacet f= *i; if(f==facet && f.isGood()){ return true; } } return false; }//contains
int QhullFacetList:: count() const { if(isSelectAll()){ return QhullLinkedList<QhullFacet>::count(); } int counter= 0; for(QhullFacetList::const_iterator i=begin(); i != end(); ++i){ if((*i).isGood()){ counter++; } } return counter; }//count
int QhullFacetSet:: count(const QhullFacet &facet) const { if(isSelectAll()){ return QhullSet<QhullFacet>::count(facet); } int counter= 0; for(QhullFacetSet::const_iterator i=begin(); i != end(); ++i){ QhullFacet f= *i; if(f==facet && f.isGood()){ counter++; } } return counter; }//count