21 using std::ostringstream;
62 QCOMPARE(fs2.
count(),4);
66 QVERIFY(fs3.isEmpty());
77 QCOMPARE(fs2.
count(),2);
79 QCOMPARE(fv.size(), 2u);
80 QList<QhullFacet> fv2= fs2.toQList();
81 QCOMPARE(fv2.size(), 2);
85 QCOMPARE(fv3.size(), 4u);
86 QList<QhullFacet> fv4= fs2.toQList();
87 QCOMPARE(fv4.size(), 4);
98 QCOMPARE(fs.
count(), 2);
101 QCOMPARE(fs.
count(), 4);
104 QCOMPARE(fs.
count(), 2);
132 QCOMPARE(*(fs.
end()-1), fs.
last());
143 os << fs.
print(
"Neighbors of first facet with point 0");
146 QString facets= QString::fromStdString(os.str());
147 QCOMPARE(facets.count(QRegExp(
" f[0-9]")), 2+13*2);
153 #include "moc/QhullFacetSet_test.moc"
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
A QhullFacet is the C++ equivalent to Qhull's facetT*.
QhullFacet firstFacet() const
void add_QhullFacetSet_test()
bool contains(const QhullFacet &f) const
countT count() const
Filtered by facet.isGood(). May be 0 when !isEmpty().
QhullFacetSet neighborFacets() const
Interface to Qhull from C++.
PrintIdentifiers printIdentifiers(const char *message) const
void selectAll()
operator==() does not depend on isGood()
void t_readonly()
Spot check properties and read-only. See QhullSet_test.
void cleanup()
Executed after each test.
const PrintFacetSet print(const char *message) const
std::vector< QhullFacet > toStdVector() const