#include <CGAL/point_generators_3.h>
template<typename Point_3, typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
struct CGAL::Random_points_in_triangles_3< Point_3, Triangle_3, Creator >
The class Random_points_in_triangles_3
is an input iterator creating points uniformly distributed inside a range of Triangle_3
.
The triangle range must be valid and unchanged while the iterator is used.
- Is Model Of:
InputIterator
PointGenerator
- See also
CGAL::Random_points_in_cube_3<Point_3, Creator>
-
CGAL::Random_points_in_triangle_3<Point_3, Creator>
-
CGAL::Random_points_in_tetrahedron_3<Point_3, 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_2<Point_2>
- Examples
- Generator/random_points_in_triangles_3.cpp.
◆ difference_type
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
◆ iterator_category
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
◆ value_type
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
◆ Random_points_in_triangles_3()
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
template<typename TriangleRange >
Creates an input iterator g
generating points of type Point_3
uniformly distributed between the triangles of the range.
Each triangle has a probability to be chosen to hold the point depending on its area.
◆ pointer
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>
◆ reference
template<typename Point_3 , typename Triangle_3 = typename Kernel_traits<Point_3>::Kernel::Triangle_3, typename Creator = Creator_uniform_3< typename Kernel_traits< Point_3 >::Kernel::RT, Point_3 >>