Subject: CGAL users discussion list
List archive
- From: ahmed <>
- To:
- Subject: [cgal-discuss] Re: How to use CGAL Trang methods
- Date: Wed, 7 Mar 2012 23:46:10 -0800 (PST)
I used this (Triangulation 3) and it works perfectly:
std::ifstream in("vertices.cin");
std::istream_iterator<Point> begin(in);
std::istream_iterator<Point> end;
Triangulation T;
T.insert(begin,end);
Triangle t;
Triangulation::Finite_facets_iterator it;
for (it = T.finite_facets_begin () ; it != T.finite_facets_end () ; it++)
{ t=T.triangle(*it);
}
You have to include the required headers and you can use t.vertex(i) to get
the vertices.
Ahmed
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/How-to-use-CGAL-Trang-methods-tp4455754p4455783.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] How to use CGAL Trang methods, Sweety Pie, 03/08/2012
- Re: [cgal-discuss] How to use CGAL Trang methods, Sebastien Loriot (GeometryFactory), 03/08/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, ahmed, 03/08/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/09/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, freckles, 03/09/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/10/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, ayongwust_sjtu, 03/10/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/10/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/12/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, ayongwust_sjtu, 03/12/2012
- Re: Re: [cgal-discuss] Re: How to use CGAL Trang methods, Laurent Rineau (GeometryFactory), 03/12/2012
- Re: Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/12/2012
- Re: Re: Re: [cgal-discuss] Re: How to use CGAL Trang methods, Laurent Rineau (GeometryFactory), 03/12/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, ayongwust_sjtu, 03/10/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/10/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, freckles, 03/09/2012
- Re: [cgal-discuss] Re: How to use CGAL Trang methods, Sweety Pie, 03/09/2012
- [cgal-discuss] Re: How to use CGAL Trang methods, ahmed, 03/08/2012
- Re: [cgal-discuss] How to use CGAL Trang methods, Sebastien Loriot (GeometryFactory), 03/08/2012
Archive powered by MHonArc 2.6.16.