Merge branch 'releases/CGAL-4.8-branch'

This commit is contained in:
Laurent Rineau 2016-03-31 12:35:23 +02:00
commit 836ce61d39
2 changed files with 10 additions and 3 deletions

View File

@ -298,12 +298,14 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}.
m_direct_octrees[s] = new Direct_octree(
m_traits, last + 1,
last + subsetSize + 1,
m_point_pmap, m_normal_pmap,
remainingPoints - subsetSize);
}
else
m_direct_octrees[0] = new Direct_octree(
m_traits, m_input_iterator_first,
m_input_iterator_first + (subsetSize),
m_input_iterator_first + (subsetSize),
m_point_pmap, m_normal_pmap,
0);
m_available_octree_sizes[s] = subsetSize;
@ -313,7 +315,8 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}.
}
m_global_octree = new Indexed_octree(
m_traits, m_input_iterator_first, m_input_iterator_beyond);
m_traits, m_input_iterator_first, m_input_iterator_beyond,
m_point_pmap, m_normal_pmap);
m_global_octree->createTree();
return true;

View File

@ -235,6 +235,8 @@ namespace CGAL {
Octree(Sd_traits const& traits,
const Input_iterator &first,
const Input_iterator &beyond,
Point_map& point_pmap,
Normal_map& normal_pmap,
std::size_t offset = 0,
std::size_t bucketSize = 20,
std::size_t maxLevel = 10)
@ -242,7 +244,9 @@ namespace CGAL {
m_traits(traits),
m_root(NULL),
m_bucket_size(bucketSize),
m_set_max_level(maxLevel) {}
m_set_max_level(maxLevel),
m_point_pmap (point_pmap),
m_normal_pmap (normal_pmap) {}
~Octree() {
if (!m_root)