21 #ifdef _MSC_VER // Microsoft Visual C++ -- warning level 4 22 #pragma warning( disable : 4611) // interaction between '_setjmp' and C++ object destruction is non-portable 23 #pragma warning( disable : 4996) // function was declared deprecated(strcpy, localtime, etc.) 46 std::vector<QhullFacet> vs;
62 std::vector<QhullVertex> vs;
65 for(QhullVertexSet::iterator i=qvs.
begin(); i!=qvs.
end(); ++i){
80 for(QhullFacetList::const_iterator i=
begin(); i !=
end(); ++i){
82 if(f==facet && f.
isGood()){
96 for(QhullFacetList::const_iterator i=
begin(); i !=
end(); ++i){
111 for(QhullFacetList::const_iterator i=
begin(); i !=
end(); ++i){
113 if(f==facet && f.
isGood()){
132 operator<<(ostream &os,
const QhullFacetList::PrintFacetList &pr)
134 os << pr.print_message;
136 os <<
"Vertices for " << fs.
count() <<
" facets" << endl;
144 operator<<(ostream &os,
const QhullFacetList::PrintFacets &pr)
146 for(QhullFacetList::const_iterator i= pr.facet_list->begin(); i != pr.facet_list->end(); ++i){
148 if(pr.facet_list->isSelectAll() || f.
isGood()){
158 operator<<(ostream &os,
const QhullFacetList::PrintVertices &pr)
160 QhullVertexSet vs(pr.facet_list->qh(), pr.facet_list->first().getFacetT(), NULL, pr.facet_list->isSelectAll());
161 for(QhullVertexSet::iterator i=vs.begin(); i!=vs.end(); ++i){
std::vector< QhullFacet > toStdVector() const
QhullFacetList()
Disable default constructor. See QhullLinkedList.
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
A QhullFacet is the C++ equivalent to Qhull's facetT*.
PrintVertex print(const char *message) const
countT count() const
Filtered by facet.isGood(). May be 0 when !isEmpty().
bool contains(const QhullFacet &f) const
ostream & operator<<(ostream &os, const QhullFacetList::PrintFacetList &pr)
PrintFacets printFacets() const
Interface to Qhull from C++.
const QhullFacet & first() const
bool contains(const T &t) const
PrintVertices printVertices() const
PrintFacet print(const char *message)
std::vector< QhullVertex > vertices_toStdVector() const
Same as PrintVertices.