2
我想生成在CGAL安排每個面多邊形(原因:看我related問題)CGAL設置面多邊形
作爲輸入,我增加折線曲線與多個呼叫:
std::list<Point_2> points;
(.. add points ..)
Polyline_2 pi1 (points.begin(), points.end());
insert (arr, pi1);
然而,當我輸出的面部:
std::ofstream ofs ("cgal_output.txt", std::ofstream::out);
template<class Arrangement>
void print_ccb (typename Arrangement::Ccb_halfedge_const_circulator circ)
{
typename Arrangement::Ccb_halfedge_const_circulator curr = circ;
do
{
typename Arrangement::Halfedge_const_handle he = curr;
ofs << he->curve() << std::endl;
} while (++curr != circ);
ofs << "#" << std::endl; // end of face mark
return;
}
的曲線的點在某種程度上也不會運行,一個consistantly嗦多邊形輪廓可以用座標繪製秒。
我該如何解決這個問題?