- Use new template ctor.

This commit is contained in:
Sylvain Pion 2003-01-14 13:19:14 +00:00
parent 1856419e46
commit ba76f57f4c
1 changed files with 9 additions and 9 deletions

View File

@ -25,15 +25,15 @@ typedef K::Point_3 Point;
int main() int main()
{ {
Triangulation T; // construction from a list of points :
// insertion from a list :
std::list<Point> L; std::list<Point> L;
L.push_front(Point(0,0,0)); L.push_front(Point(0,0,0));
L.push_front(Point(1,0,0)); L.push_front(Point(1,0,0));
L.push_front(Point(0,1,0)); L.push_front(Point(0,1,0));
int n = T.insert(L.begin(), L.end()); Triangulation T(L.begin(), L.end());
int n = T.number_of_vertices();
// insertion from a vector : // insertion from a vector :
std::vector<Point> V(3); std::vector<Point> V(3);