\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.11 - Geometric Object Generators
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Random_points_in_tetrahedral_mesh_3< C3T3, Creator > Class Template Reference

#include <CGAL/point_generators_3.h>

Definition

template<class C3T3, class Creator = Creator_uniform_3< typename Kernel_traits< typename C3t3::Point >::Kernel::RT, typename C3t3::Point >>
class CGAL::Random_points_in_tetrahedral_mesh_3< C3T3, Creator >

The class Random_points_in_tetrahedral_mesh_3 is an input iterator creating points uniformly distributed inside a tetrahedral mesh of type Mesh_complex_3_in_triangulation_3.

The tetrahedral mesh must be valid and unchanged while the iterator is used.

Template Parameters
C3T3must be a model of Mesh_complex_3_in_triangulation_3
Is Model Of:

InputIterator

PointGenerator

See Also
CGAL::cpp11::copy_n()
CGAL::Counting_iterator
CGAL::Random_points_in_disc_2<Point_2, Creator>
CGAL::Random_points_in_cube_3<Point_3, Creator>
CGAL::Random_points_in_triangle_3<Point_3, Creator>
CGAL::Random_points_on_sphere_3<Point_3, Creator>
CGAL::Random_points_in_triangle_mesh_3<Point_3, TriangleMesh>
CGAL::Random_points_in_triangle_mesh_2<Point_2, Triangulation>
CGAL::Random_points_in_tetrahedral_mesh_boundary_3<C3T3>
CGAL::Random_points_in_triangles_2<Point_2>
CGAL::Random_points_in_triangles_3<Point_3>
std::random_shuffle
Examples:
Generator/random_points_in_tetrahedral_mesh_3.cpp.

Types

typedef std::input_iterator_tag iterator_category
 
typedef
C3T3::Triangulation::Point_3 
value_type
 
typedef std::ptrdiff_t difference_type
 
typedef const value_typepointer
 
typedef const value_typereference
 
 Random_points_in_tetrahedral_mesh_3 (const C3T3 &c3t3, Random &rnd=get_default_random())
 Creates an input iterator g generating points of type Weighted_point_3 uniformly distributed inside the tetrahedra of the mesh. More...
 

Constructor & Destructor Documentation

template<class C3T3 , class Creator = Creator_uniform_3< typename Kernel_traits< typename C3t3::Point >::Kernel::RT, typename C3t3::Point >>
CGAL::Random_points_in_tetrahedral_mesh_3< C3T3, Creator >::Random_points_in_tetrahedral_mesh_3 ( const C3T3 &  c3t3,
Random rnd = get_default_random() 
)

Creates an input iterator g generating points of type Weighted_point_3 uniformly distributed inside the tetrahedra of the mesh.

Each tetrahedron has a probability to be chosen to hold the point depending on its volume.