23 using std::ostringstream;
64 QCOMPARE(fs2.
count(),6);
66 QVERIFY(fs3.isEmpty());
68 QCOMPARE(fs4.count(), 1);
70 QCOMPARE(fs2.
count(), fs5.count());
75 QCOMPARE(fv.size(), 6u);
85 QCOMPARE(fs2.
count(),6);
87 QVERIFY(fs3.isEmpty());
89 QCOMPARE(fs4.count(), 1);
91 QCOMPARE(fs2.
count(), fs5.count());
96 QCOMPARE(fv.size(), 6u);
107 QCOMPARE(fs2.
count(),3);
109 QCOMPARE(fv.size(), 3u);
110 QList<QhullFacet> fv2= fs2.toQList();
111 QCOMPARE(fv2.size(), 3);
113 QCOMPARE(fv5.size(), 7u);
114 QList<QhullVertex> fv6= fs2.vertices_toQList();
115 QCOMPARE(fv6.size(), 7);
119 QCOMPARE(fv3.size(), 6u);
120 QList<QhullFacet> fv4= fs2.toQList();
121 QCOMPARE(fv4.size(), 6);
123 QCOMPARE(fv7.size(), 8u);
124 QList<QhullVertex> fv8= fs2.vertices_toQList();
125 QCOMPARE(fv8.size(), 8);
136 QCOMPARE(fs.
count(), 3);
140 QCOMPARE(fs.
count(), 6);
143 QCOMPARE(fs.
count(), 3);
146 QCOMPARE(fs.
count(), 6);
170 QCOMPARE(*(fs.
end()-1), fs.
last());
184 os << fs.
print(
"Show all of FacetList\n");
185 os <<
"\nFacets only\n" << fs;
188 QString facets= QString::fromStdString(os.str());
189 QCOMPARE(facets.count(
"(v"), 2*7+12*3*2);
190 QCOMPARE(facets.count(QRegExp(
"f\\d")), 2*3*7 + 13*3*2);
196 #include "moc/QhullFacetList_test.moc" std::vector< QhullFacet > toStdVector() const
void selectGood()
operator==() does not depend on isGood()
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
void add_QhullFacetList_test()
A QhullFacet is the C++ equivalent to Qhull's facetT*.
QhullFacet firstFacet() const
PrintFacetList print(const char *message) const
QhullFacet previous() const
QhullFacetList facetList() const
countT count() const
Filtered by facet.isGood(). May be 0 when !isEmpty().
QhullFacet beginFacet() const
bool contains(const QhullFacet &f) const
Interface to Qhull from C++.
PrintVertices printVertices() const
std::vector< QhullVertex > vertices_toStdVector() const
Same as PrintVertices.
void cleanup()
Executed after each test.
void t_readonly()
Spot check properties and read-only. See QhullLinkedList_test.
QhullFacet endFacet() const