19 #ifndef SNARK_POINTCLOUD_PARTITION_H_
20 #define SNARK_POINTCLOUD_PARTITION_H_
22 #include <boost/optional.hpp>
24 #include <comma/base/types.h>
25 #include <snark/math/interval.h>
26 #include <snark/point_cloud/voxel_grid.h>
34 partition(
const extents_type& extents
35 ,
const Eigen::Vector3d& resolution
36 , std::size_t min_points_per_voxel = 1 );
40 const boost::optional< comma::uint32 >& insert(
const Eigen::Vector3d& point );
42 void commit( std::size_t min_voxels_per_partition = 1
43 , std::size_t min_points_per_partition = 1
44 , comma::uint32 min_id = 0 );
53 #endif // SNARK_POINTCLOUD_PARTITION_H_