mirror of https://github.com/CGAL/cgal
Add tag for manifoldness in function
This commit is contained in:
parent
9f709e7c74
commit
c7c30eef9b
|
|
@ -60,6 +60,9 @@ namespace CGAL {
|
||||||
\tparam PolygonMesh a model of `MutableFaceGraph` with an internal
|
\tparam PolygonMesh a model of `MutableFaceGraph` with an internal
|
||||||
point property map.
|
point property map.
|
||||||
|
|
||||||
|
\tparam Tag is a tag whose type affects the behavior of the
|
||||||
|
meshing algorithm (see `make_surface_mesh()`).
|
||||||
|
|
||||||
\param begin iterator on the first point of the sequence.
|
\param begin iterator on the first point of the sequence.
|
||||||
\param end past the end iterator of the point sequence.
|
\param end past the end iterator of the point sequence.
|
||||||
\param point_map property map: value_type of `InputIterator` -> Point_3.
|
\param point_map property map: value_type of `InputIterator` -> Point_3.
|
||||||
|
|
@ -72,7 +75,8 @@ namespace CGAL {
|
||||||
template <typename PointInputIterator,
|
template <typename PointInputIterator,
|
||||||
typename PointMap,
|
typename PointMap,
|
||||||
typename NormalMap,
|
typename NormalMap,
|
||||||
typename PolygonMesh>
|
typename PolygonMesh,
|
||||||
|
typename Tag = CGAL::Manifold_with_boundary_tag>
|
||||||
bool
|
bool
|
||||||
poisson_surface_reconstruction(PointInputIterator begin,
|
poisson_surface_reconstruction(PointInputIterator begin,
|
||||||
PointInputIterator end,
|
PointInputIterator end,
|
||||||
|
|
@ -82,7 +86,8 @@ namespace CGAL {
|
||||||
double spacing,
|
double spacing,
|
||||||
double sm_angle = 20.0,
|
double sm_angle = 20.0,
|
||||||
double sm_radius = 30.0,
|
double sm_radius = 30.0,
|
||||||
double sm_distance = 0.375)
|
double sm_distance = 0.375,
|
||||||
|
Tag tag = Tag())
|
||||||
{
|
{
|
||||||
typedef typename boost::property_traits<PointMap>::value_type Point;
|
typedef typename boost::property_traits<PointMap>::value_type Point;
|
||||||
typedef typename Kernel_traits<Point>::Kernel Kernel;
|
typedef typename Kernel_traits<Point>::Kernel Kernel;
|
||||||
|
|
@ -118,7 +123,7 @@ namespace CGAL {
|
||||||
CGAL::make_surface_mesh(c2t3,
|
CGAL::make_surface_mesh(c2t3,
|
||||||
surface,
|
surface,
|
||||||
criteria,
|
criteria,
|
||||||
CGAL::Manifold_with_boundary_tag());
|
tag);
|
||||||
|
|
||||||
if(tr.number_of_vertices() == 0)
|
if(tr.number_of_vertices() == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue