Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: How to use CGAL Trang methods

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: How to use CGAL Trang methods


Chronological Thread 
  • 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.



Archive powered by MHonArc 2.6.16.

Top of Page