CGAL 5.5.5 - Poisson Surface Reconstruction
|
CGAL::Poisson_reconstruction_function<GeomTraits>
Classes | |
class | CGAL::Poisson_reconstruction_function< Gt > |
Implementation of the Poisson Surface Reconstruction method. More... | |
Functions | |
template<typename PointInputIterator , typename PointMap , typename NormalMap , typename PolygonMesh , typename Tag = CGAL::Manifold_with_boundary_tag> | |
bool | CGAL::poisson_surface_reconstruction_delaunay (PointInputIterator begin, PointInputIterator end, PointMap point_map, NormalMap normal_map, PolygonMesh &output_mesh, double spacing, double sm_angle=20.0, double sm_radius=30.0, double sm_distance=0.375, Tag tag=Tag()) |
Performs surface reconstruction as follows: More... | |
bool CGAL::poisson_surface_reconstruction_delaunay | ( | PointInputIterator | begin, |
PointInputIterator | end, | ||
PointMap | point_map, | ||
NormalMap | normal_map, | ||
PolygonMesh & | output_mesh, | ||
double | spacing, | ||
double | sm_angle = 20.0 , |
||
double | sm_radius = 30.0 , |
||
double | sm_distance = 0.375 , |
||
Tag | tag = Tag() |
||
) |
#include <CGAL/poisson_surface_reconstruction.h>
Performs surface reconstruction as follows:
This function relies mainly on the size parameter spacing
. A reasonable solution is to use the average spacing of the input point set (using compute_average_spacing()
for example). Smaller values increase the precision of the output mesh at the cost of higher computation time.
Parameters sm_angle
, sm_radius
and sm_distance
work similarly to the parameters of SurfaceMeshFacetsCriteria_3
. The latest two are defined with respect to spacing
.
PointInputIterator | is a model of InputIterator . |
PointMap | is a model of ReadablePropertyMap with value type Point_3<Kernel> . |
NormalMap | is a model of ReadablePropertyMap with value type Vector_3<Kernel> . |
PolygonMesh | a model of MutableFaceGraph with an internal point property map. |
Tag | is a tag whose type affects the behavior of the meshing algorithm (see make_surface_mesh() ). |
begin | iterator on the first point of the sequence. |
end | past the end iterator of the point sequence. |
point_map | property map: value_type of InputIterator -> Point_3. |
normal_map | property map: value_type of InputIterator -> Vector_3. |
output_mesh | where the reconstruction is stored. |
spacing | size parameter. |
sm_angle | bound for the minimum facet angle in degrees. |
sm_radius | bound for the radius of the surface Delaunay balls (relatively to the average_spacing ). |
sm_distance | bound for the center-center distances (relatively to the average_spacing ). |
tag | surface mesher tag. |
true
if reconstruction succeeded, false
otherwise.