22 using std::ostringstream;
60 cout <<
"INFO : Cube rotated by QR" << q.
rotateRandom() << std::endl;
64 QCOMPARE(vs.
count(),4);
68 QVERIFY(vs3.isEmpty());
76 cout <<
"INFO : Cube rotated by QR" << q.
rotateRandom() << std::endl;
79 QCOMPARE(vs2.
count(),4);
81 QCOMPARE(fv.size(), 4u);
82 QList<QhullVertex> fv2= vs2.toQList();
83 QCOMPARE(fv2.size(), 4);
85 QCOMPARE(fv3.size(), 4u);
86 QList<QhullVertex> fv4= vs2.toQList();
87 QCOMPARE(fv4.size(), 4);
97 QCOMPARE(vs.
count(), 4);
98 QCOMPARE(vs.
count(), 4);
111 cout <<
"INFO : Cube rotated by QR" << q.
rotateRandom() << std::endl;
116 QCOMPARE(*(vs.
end()-1), vs.
last());
125 cout <<
"INFO : Cube rotated by QR" << q.
rotateRandom() << std::endl;
128 os << vs.
print(
"Vertices of first facet with point 0");
131 QString vertices= QString::fromStdString(os.str());
132 QCOMPARE(vertices.count(QRegExp(
" v[0-9]")), 4);
137 QList<QhullVertex> QhullVertexSet::
141 QList<QhullVertex> vs;
148 #endif //QHULL_USES_QT 152 #include "moc/QhullVertexSet_test.moc"
std::vector< QhullVertex > toStdVector() const
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
A QhullFacet is the C++ equivalent to Qhull's facetT*.
void t_readonly()
Spot check properties and read-only. See QhullSet_test.
Faster then interator/const_iterator due to T::base_type.
QhullFacet firstFacet() const
QhullVertexSet vertices() const
bool contains(const T &t) const
const PrintVertexSet print(const char *message) const
PrintIdentifiers printIdentifiers(const char *message) const
void add_QhullVertexSet_test()
Interface to Qhull from C++.
int rotateRandom() const
Return QRn for repeating QR0 runs.
void cleanup()
Executed after each test.
countT count(const T &t) const