![]() |
Given a set of 3D points with oriented normals sampled on the boundary of a 3D solid, the Poisson Surface Reconstruction method [KBH06] solves for an approximate indicator function of the inferred solid, whose gradient best matches the input normals. The output scalar function, represented in an adaptive octree, is then iso-contoured using an adaptive marching cubes.
Poisson_reconstruction_function implements a variant of this algorithm which solves for a piecewise linear function on a 3D Delaunay triangulation instead of an adaptive octree.
#include <CGAL/Poisson_reconstruction_function.h>
template<class Gt>
class Poisson_reconstruction_function;
Parameters
Model of the ImplicitFunction concept.
| Poisson_reconstruction_function<GeomTraits>::Geom_traits | |
|
Geometric traits class.
| |
| Poisson_reconstruction_function<GeomTraits>::FT | |
|
typedef to Geom_traits::FT
| |
| Poisson_reconstruction_function<GeomTraits>::Point | |
|
typedef to Geom_traits::Point_3
| |
| Poisson_reconstruction_function<GeomTraits>::Vector | |
|
typedef to Geom_traits::Vector_3
| |
| Poisson_reconstruction_function<GeomTraits>::Sphere | |
|
typedef to Geom_traits::Sphere_3
| |
| template<typename InputIterator, typename PointPMap, typename NormalPMap> | |||||
| |||||
Creates a Poisson implicit function from the [first, beyond) range of points.
| |||||
| Sphere | fct.bounding_sphere () const | Returns a sphere bounding the inferred surface. | ||||||
| template<class SparseLinearAlgebraTraits_d> | ||||||||
| bool |
| |||||||
The function compute_implicit_function() must be called after the insertion of oriented points. It computes the piecewise linear scalar function operator() by: applying Delaunay refinement, solving for operator() at each vertex of the triangulation with a sparse linear solver, and shifting and orienting operator() such that it is 0 at all input points and negative inside the inferred surface.
| ||||||||
| FT | fct.operator() ( const Point& p) const | |||||||
| ImplicitFunction interface: evaluates the implicit function at a given 3D query point. The function compute_implicit_function must be called before the first call to operator(). | ||||||||
| Point | fct.get_inner_point () const | Returns an arbitray point located inside the inferred surface. | ||||||
See Surface_reconstruction_points_3/poisson_reconstruction_example.cpp.