mirror of https://github.com/CGAL/cgal
- Use new template ctor.
This commit is contained in:
parent
1856419e46
commit
ba76f57f4c
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue