mirror of https://github.com/CGAL/cgal
build() always trigger the reconstruction of the tree
It can be useful for a mesh with update vertex coordinates
This commit is contained in:
parent
cbd7dfc793
commit
c8eddc4efc
|
|
@ -703,12 +703,6 @@ public:
|
||||||
// Build the data structure, after calls to insert(..)
|
// Build the data structure, after calls to insert(..)
|
||||||
template<typename Tr>
|
template<typename Tr>
|
||||||
void AABB_tree<Tr>::build()
|
void AABB_tree<Tr>::build()
|
||||||
{
|
|
||||||
#ifdef CGAL_HAS_THREADS
|
|
||||||
if (m_atomic_need_build.load())
|
|
||||||
#else
|
|
||||||
if (m_need_build)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
clear_nodes();
|
clear_nodes();
|
||||||
if(m_primitives.size() > 1) {
|
if(m_primitives.size() > 1) {
|
||||||
|
|
@ -733,7 +727,6 @@ public:
|
||||||
m_need_build = false;
|
m_need_build = false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// constructs the search KD tree from given points
|
// constructs the search KD tree from given points
|
||||||
// to accelerate the distance queries
|
// to accelerate the distance queries
|
||||||
template<typename Tr>
|
template<typename Tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue