#include <CGAL/Simple_cartesian.h>
#include <CGAL/point_generators_3.h>
#include <iostream>
#include <fstream>
typedef K::Point_3 Point;
int main()
{
std::vector<Point> points;
std::vector<K::Triangle_3> triangles;
for(int i=0; i< 5; ++i)
{
triangles.push_back(K::Triangle_3(Point(i,0,0.5*i), Point(i+1,0,0.5*i), Point(i+0.5,1,0.5*i)));
}
std::copy_n(g, 1000, std::back_inserter(points));
assert( points.size() == 1000);
std::cout << points[0] << std::endl;
return 0;
}
The class Random_points_in_triangles_3 is an input iterator creating points uniformly distributed ins...
Definition: point_generators_3.h:405