mirror of https://github.com/CGAL/cgal
fix the default vertex point map used
This commit is contained in:
parent
aa5dffa48d
commit
a195583c9d
|
|
@ -465,19 +465,18 @@ typedef const Point_3& reference;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
Creates an input iterator `g` generating points of type `Point_3` uniformly
|
|
||||||
distributed in the mesh faces. Each triangle has a probability to be chosen to hold the point depending on its area.
|
|
||||||
|
|
||||||
*/
|
|
||||||
Random_points_in_triangle_mesh_3(const TriangleMesh& mesh, Random& rnd = get_default_random() );
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Creates an input iterator `g` generating points of type `Point_3` uniformly
|
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.
|
distributed in the mesh faces based on `vpm`. Each triangle has a probability to be chosen to hold the point depending on its area.
|
||||||
*/
|
*/
|
||||||
Random_points_in_triangle_mesh_3(const TriangleMesh& mesh, VertexPointMap vpm, Random& rnd = get_default_random() );
|
Random_points_in_triangle_mesh_3(const TriangleMesh& mesh, VertexPointMap vpm, Random& rnd = get_default_random() );
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Similar to the previous constructor using `get(vertex_point, mesh)` as vertex point map.
|
||||||
|
*/
|
||||||
|
Random_points_in_triangle_mesh_3(const TriangleMesh& mesh, Random& rnd = get_default_random() );
|
||||||
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
}; /* end Random_points_in_triangle_mesh_3 */
|
}; /* end Random_points_in_triangle_mesh_3 */
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ struct Random_points_in_triangle_mesh_3
|
||||||
|
|
||||||
Random_points_in_triangle_mesh_3( const TriangleMesh& mesh,Random& rnd = get_default_random())
|
Random_points_in_triangle_mesh_3( const TriangleMesh& mesh,Random& rnd = get_default_random())
|
||||||
: Base( faces(mesh),
|
: Base( faces(mesh),
|
||||||
CGAL::Property_map_to_unary_function<Pmap>(&mesh),
|
CGAL::Property_map_to_unary_function<Pmap>(Pmap(&mesh, get(vertex_point, mesh))),
|
||||||
internal::Apply_approx_sqrt<typename Kernel_traits<P>::Kernel::Compute_squared_area_3>(),
|
internal::Apply_approx_sqrt<typename Kernel_traits<P>::Kernel::Compute_squared_area_3>(),
|
||||||
rnd )
|
rnd )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue