本文整理汇总了C++中QuadEdge::setDest方法的典型用法代码示例。如果您正苦于以下问题:C++ QuadEdge::setDest方法的具体用法?C++ QuadEdge::setDest怎么用?C++ QuadEdge::setDest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QuadEdge
的用法示例。
在下文中一共展示了QuadEdge::setDest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QuadEdge
std::auto_ptr<QuadEdge>
QuadEdge::makeEdge(const Vertex &o, const Vertex &d)
{
QuadEdge *q0 = new QuadEdge();
//q1-q3 are free()'d by q0
QuadEdge *q1 = new QuadEdge();
QuadEdge *q2 = new QuadEdge();
QuadEdge *q3 = new QuadEdge();
q0->_rot = q1;
q1->_rot = q2;
q2->_rot = q3;
q3->_rot = q0;
q0->setNext(q0);
q1->setNext(q3);
q2->setNext(q2);
q3->setNext(q1);
QuadEdge *base = q0;
base->setOrig(o);
base->setDest(d);
return std::auto_ptr<QuadEdge>(base);
}
示例2: makeEdge
QuadEdge *connect( QuadEdge *a, QuadEdge *b ) {
QuadEdge *e = makeEdge();
e->setOrg( a->Dest() );
e->setDest( b->Org() );
splice( e, a->Lnext() );
splice( e->Sym(), b );
return e;
}
示例3:
void
QuadEdge::swap(QuadEdge &e)
{
QuadEdge &a = e.oPrev();
QuadEdge &b = e.sym().oPrev();
splice(e, a);
splice(e.sym(), b);
splice(e, a.lNext());
splice(e.sym(), b.lNext());
e.setOrig(a.dest());
e.setDest(b.dest());
}