Skip to content

Commit

Permalink
Add Indexed_octree constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 4, 2020
1 parent 5da9a28 commit f4f20c2
Showing 1 changed file with 14 additions and 0 deletions.
Expand Up @@ -78,8 +78,22 @@ class Direct_octree : public Octree::Octree<typename Traits::Input_range, typena
template<class Traits>
class Indexed_octree : public Octree::Octree<typename Traits::Input_range, typename Traits::Point_map> {

Traits m_traits;

typedef typename Traits::Input_range::iterator Input_iterator;
typedef typename Traits::Point_map Point_map;

public:

Indexed_octree(const Traits &traits,
const Input_iterator &begin,
const Input_iterator &end,
Point_map &point_map) :
Octree::Octree<typename Traits::Input_range, typename Traits::Point_map>({begin, end}, point_map),
m_traits(traits) {

}

std::size_t size() const {
return this->root().size();
}
Expand Down

0 comments on commit f4f20c2

Please sign in to comment.