CGAL 5.5.5 - Geometric Object Generators
|
#include <CGAL/point_generators_2.h>
The class Random_points_in_triangle_mesh_2
is an input iterator creating points uniformly distributed inside a 2D domain represented by a 2D triangulation.
Triangulation must be a CGAL triangulation with a face model of DelaunayMeshFaceBase_2
. The sampled model is the union of the faces for which DelaunayMeshFaceBase_2::is_in_domain()
returns true
. The triangulation must be valid and unchanged while the iterator is used.
CGAL::Points_on_segment_2<Point_2>
CGAL::Random_points_in_disc_2<Point_2, Creator>
CGAL::Random_points_on_segment_2<Point_2, Creator>
CGAL::Random_points_on_square_2<Point_2, Creator>
CGAL::Random_points_in_cube_3<Point_3, Creator>
CGAL::Random_points_in_triangle_3<Point_2, Creator>
CGAL::Random_points_in_tetrahedron_3<Point_2, Creator>
CGAL::Random_points_in_triangle_mesh_3<Point_3, TriangleMesh>
CGAL::Random_points_in_tetrahedral_mesh_boundary_3<C3T3>
CGAL::Random_points_in_tetrahedral_mesh_3<C3T3>
CGAL::Random_points_in_triangles_3<Point_3>
CGAL::Random_points_in_triangles_2<Point_2>
Types | |
typedef std::input_iterator_tag | iterator_category |
typedef Point_2 | value_type |
typedef std::ptrdiff_t | difference_type |
const typedef Point_2 * | pointer |
const typedef Point_2 & | reference |
Random_points_in_triangle_mesh_2 (const Triangulation &triangulation, Random &rnd=get_default_random()) | |
Creates an input iterator g generating points of type Point_2 uniformly distributed between the triangles of the triangulation. More... | |
CGAL::Random_points_in_triangle_mesh_2< Point_2, Triangulation, Creator >::Random_points_in_triangle_mesh_2 | ( | const Triangulation & | triangulation, |
Random & | rnd = get_default_random() |
||
) |
Creates an input iterator g
generating points of type Point_2
uniformly distributed between the triangles of the triangulation.
Each triangle has a probability to be chosen to hold the point depending on its area.