|
CGAL 6.1.3 - Geometric Object Generators
|
#include <CGAL/point_generators_3.h>
The class Random_points_in_triangle_mesh_3 is an input iterator creating points uniformly distributed inside the faces of a triangle mesh model of FaceListGraph.
The triangle mesh must be valid and unchanged while the iterator is used.
InputIterator PointGenerator Types | |
| typedef std::input_iterator_tag | iterator_category |
| typedef boost::property_traits< VertexPointMap >::value_type | Point_3 |
| typedef Point_3 | value_type |
| typedef std::ptrdiff_t | difference_type |
| typedef const Point_3 * | pointer |
| typedef const Point_3 & | reference |
| Random_points_in_triangle_mesh_3 (const TriangleMesh &mesh, VertexPointMap vpm, Random &rnd=get_default_random()) | |
| Creates an input iterator g generating points of type Point_3 uniformly distributed in the mesh faces based on vpm. | |
| Random_points_in_triangle_mesh_3 (const TriangleMesh &mesh, Random &rnd=get_default_random()) | |
| Similar to the previous constructor using get(vertex_point, mesh) as vertex point map. | |
| CGAL::Random_points_in_triangle_mesh_3< TriangleMesh, VertexPointMap, Creator >::Random_points_in_triangle_mesh_3 | ( | const TriangleMesh & | mesh, |
| VertexPointMap | vpm, | ||
| Random & | rnd = get_default_random() ) |
Creates an input iterator g generating points of type Point_3 uniformly distributed in the mesh faces based on vpm.
Each triangle has a probability to be chosen to hold the point depending on its area.