38 #include <pcl/memory.h>
39 #include <pcl/pcl_macros.h>
40 #include <pcl/surface/boost.h>
41 #include <pcl/surface/marching_cubes.h>
52 template <
typename Po
intNT>
56 using Ptr = shared_ptr<MarchingCubesHoppe<PointNT> >;
57 using ConstPtr = shared_ptr<const MarchingCubesHoppe<PointNT> >;
77 const float percentage_extend_grid = 0.0f,
78 const float iso_level = 0.0f) :
119 #ifdef PCL_NO_PRECOMPILE
120 #include <pcl/surface/impl/marching_cubes_hoppe.hpp>
void setDistanceIgnore(const float dist_ignore)
Method that sets the distance for ignoring voxels which are far from point cloud. ...
shared_ptr< const MarchingCubes< PointNT > > ConstPtr
typename KdTree::Ptr KdTreePtr
The marching cubes surface reconstruction algorithm.
MarchingCubesHoppe(const float dist_ignore=-1.0f, const float percentage_extend_grid=0.0f, const float iso_level=0.0f)
Constructor.
void voxelizeData() override
Convert the point cloud into voxel data.
SurfaceReconstruction represents a base surface reconstruction class.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
shared_ptr< KdTree< PointT > > Ptr
The marching cubes surface reconstruction algorithm, using a signed distance function based on the di...
~MarchingCubesHoppe()
Destructor.
shared_ptr< PointCloud< PointT > > Ptr
typename pcl::PointCloud< PointNT >::Ptr PointCloudPtr
shared_ptr< MarchingCubes< PointNT > > Ptr
float dist_ignore_
ignore the distance function if it is negative or distance between voxel centroid and point are large...
float getDistanceIgnore() const
get the distance for ignoring voxels which are far from point cloud.
KdTree represents the base spatial locator class for kd-tree implementations.