#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/point_generators_3.h>
#include <iostream>
#include <fstream>
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef K::Point_3 Point;
typedef K::FT FT;
int main()
{
std::vector<Point> points;
Polyhedron polyhedron;
polyhedron.make_tetrahedron(Point(-1,0,0), Point(0,1,0), Point(1,0,0), Point(0,0,-1));
g(polyhedron);
std::copy_n(g, 100, std::back_inserter(points));
assert( points.size() == 100);
std::cout << points[0] << std::endl;
return 0;
}
The class Random_points_in_triangle_mesh_3 is an input iterator creating points uniformly distributed...
Definition: point_generators_3.h:470