Skip to content

Commit 0d3d169

Browse files
committed
- bugfix
1 parent 3df7a33 commit 0d3d169

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/CompactNSearch.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class NeighborhoodSearch
162162
void set_active(unsigned int i, unsigned int j, bool active)
163163
{
164164
m_activation_table.set_active(i, j, active);
165+
m_initialized = false;
165166
}
166167

167168
/** Activate/Deactivate all point set pairs containing the given index. If search_neighbors is true, neighbors in all other point sets are searched.
@@ -173,13 +174,15 @@ class NeighborhoodSearch
173174
void set_active(unsigned int i, bool search_neighbors = true, bool find_neighbors = true)
174175
{
175176
m_activation_table.set_active(i, search_neighbors, find_neighbors);
177+
m_initialized = false;
176178
}
177179

178180
/** Activate/Deactivate all point set pairs.
179181
*/
180182
void set_active(bool active)
181183
{
182184
m_activation_table.set_active(active);
185+
m_initialized = false;
183186
}
184187

185188
/** Returns true if point set i searchs points in point set j.

0 commit comments

Comments
 (0)