Loading web-font TeX/Math/Italic
 
CGAL 6.0 - Ball Merge Surface Reconstruction
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Loading...
Searching...
No Matches
CGAL::Ball_merge_surface_reconstruction< Traits, ConcurrencyTag > Class Template Reference

#include <CGAL/Ball_merge_surface_reconstruction.h>

Definition

template<typename Traits, typename ConcurrencyTag>
class CGAL::Ball_merge_surface_reconstruction< Traits, ConcurrencyTag >

Class that can be used for running the ball merge surface reconstruction algorithms.

Once input points passed, it is possible to run a reconstruction algorithm with different parameters without rebuilding the internal Delaunay Triangulation.

Template Parameters
Traitsa model of DelaunayTriangulationTraits_3, with default using the value type of PointRange plugged in Kernel_traits
ConcurrencyTagenables sequential versus parallel algorithm. Possible values are Sequential_tag, Parallel_tag, and Parallel_if_available_tag.

Public Member Functions

template<class PointRange >
void build_triangulation (const PointRange &points)
 sets the input points for the triangulation, and (build the internal triangulation.
 
template<class NamedParameters = parameters::Default_named_parameters, class TripleIndexRange >
void local_reconstruction (TripleIndexRange &out_triangles, const NamedParameters &np=parameters::default_values())
 creates a triangle soup approximating the surface with sample points passed to build_triangulation(), and puts the resulting triangule faces in out_triangles.
 
template<class NamedParameters = parameters::Default_named_parameters, class TripleIndexRange >
void global_reconstruction (TripleIndexRange &out_triangles1, TripleIndexRange &out_triangles2, const NamedParameters &np=parameters::default_values())
 creates two watertight meshes approximating the surface with sample points passed to build_triangulation(), and puts the resulting triangule faces in out_triangles1 and out_triangles2.
 

Member Function Documentation

◆ build_triangulation()

template<typename Traits , typename ConcurrencyTag >
template<class PointRange >
void CGAL::Ball_merge_surface_reconstruction< Traits, ConcurrencyTag >::build_triangulation ( const PointRange &  points)

sets the input points for the triangulation, and (build the internal triangulation.

If called several times, only the last point range will be considered for the reconstructions.

Template Parameters
PointRangea model of RandomAccessContainer, with Traits::Point_3 as value type
Parameters
pointsis the input points

◆ global_reconstruction()

template<typename Traits , typename ConcurrencyTag >
template<class NamedParameters = parameters::Default_named_parameters, class TripleIndexRange >
void CGAL::Ball_merge_surface_reconstruction< Traits, ConcurrencyTag >::global_reconstruction ( TripleIndexRange &  out_triangles1,
TripleIndexRange &  out_triangles2,
const NamedParameters &  np = parameters::default_values() 
)

creates two watertight meshes approximating the surface with sample points passed to build_triangulation(), and puts the resulting triangule faces in out_triangles1 and out_triangles2.

Template Parameters
TripleIndexRangea model of BackInsertionSequence with value_type being a model of RandomAccessContainer and BackInsertionSequence with value_type being constructible from std::size_t.
Parameters
out_triangles1is the output parameter storing the first resulting mesh
out_triangles2is the output parameter storing the second resulting mesh
npan optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
  • the value of \delta
  • Type: double
  • Default: 1.7

◆ local_reconstruction()

template<typename Traits , typename ConcurrencyTag >
template<class NamedParameters = parameters::Default_named_parameters, class TripleIndexRange >
void CGAL::Ball_merge_surface_reconstruction< Traits, ConcurrencyTag >::local_reconstruction ( TripleIndexRange &  out_triangles,
const NamedParameters &  np = parameters::default_values() 
)

creates a triangle soup approximating the surface with sample points passed to build_triangulation(), and puts the resulting triangule faces in out_triangles.

Template Parameters
TripleIndexRangea model of BackInsertionSequence with value_type being a model of RandomAccessContainer and BackInsertionSequence with value_type being constructible from std::size_t.
Parameters
out_trianglesis the output parameter storing triangles approximating the surface
npan optional sequence of Named Parameters among the ones listed below
Optional Named Parameters
  • the value of \delta
  • Type: double
  • Default: 1.7

  • the value of \eta
  • Type: double
  • Default: 200.
  • Extra: The geometric traits class must be compatible with the vertex point type.