Go to the documentation of this file.
22 using std::ostringstream;
66 QCOMPARE(ps.
count(), 0);
67 QCOMPARE(ps.
size(), 0u);
70 coplanarCount += ps2.
count();
80 QCOMPARE(coplanarCount, 1000);
90 QVERIFY(ps.
count()>=1);
92 QCOMPARE(vs.size(), ps.
size());
96 QList<QhullPoint> qs= ps.toQList();
97 QCOMPARE(qs.size(),
static_cast<int>(ps.
size()));
112 QVERIFY(ps.
count()>=3);
116 QCOMPARE(ps.
at(1), ps[1]);
117 QCOMPARE(ps.
second(), ps[1]);
118 QCOMPARE(ps.
first(), p);
120 QCOMPARE(ps.
last(), p2);
123 QCOMPARE(ps.
value(2), ps[2]);
124 QCOMPARE(ps.
value(-1), p8);
127 QVERIFY(ps.
value(1, p)!=p);
143 QVERIFY(ps.
count()>=3);
145 QhullPointSet::iterator i2= ps.
begin();
159 QCOMPARE(p2, ps.
last());
166 QCOMPARE((*i3)[0], ps[1][0]);
167 QCOMPARE((*i3).dimension(), 3);
204 QCOMPARE(*i2, ps[1]);
207 QCOMPARE(i2, ps.
begin());
211 QCOMPARE(i2+0, ps.
begin());
217 QCOMPARE(i, ps.
begin());
218 QCOMPARE(i2-i, ps.
count());
232 QVERIFY(ps.
count()>=3);
234 QhullPointSet::const_iterator i2= ps.
begin();
251 QCOMPARE(p2, ps.
last());
278 QVERIFY(ps.
count()>=3);
305 QVERIFY(ps2.
count()==0);
315 QVERIFY(ps.
count()>=3);
346 QCOMPARE(i.
next(), p);
350 QCOMPARE(i.
next(), p4);
353 QCOMPARE(i.
next(), p);
364 QVERIFY(ps.
count()>=3);
365 os <<
"QhullPointSet from coplanarPoints\n" << ps << endl;
366 os << ps.
print(
"\nWith message\n");
368 os <<
"\nAs a point set:\n";
371 QString s= QString::fromStdString(os.str());
372 QCOMPARE(s.count(
" 0.5\n"), 3*ps.count());
373 QCOMPARE(s.count(
"p"), ps.count()+4);
378 #include "moc/QhullPointSet_test.moc"
QhullSet< QhullPoint >::iterator Iterator
PrintPointSet print(const char *message) const
T value(countT idx) const
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.
countT indexOf(const T &t) const
QhullPointSet outsidePoints() const
std::vector< T > toStdVector() const
countT lastIndexOf(const T &t) const
void t_pointset_iterator()
QhullSet< QhullPoint >::const_iterator ConstIterator
Faster then interator/const_iterator due to T::base_type.
Interface to Qhull from C++.
PrintIdentifiers printIdentifiers(const char *message) const
bool contains(const T &t) const
const_iterator constEnd() const
countT count(const T &t) const
facetT * getFacetT() const
A QhullFacet is the C++ equivalent to Qhull's facetT*.
const T at(countT idx) const
void add_QhullPointSet_test()
const_iterator constBegin() const
void cleanup()
Executed after each test.
QhullPointSet coplanarPoints() const
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14