Commit 6f2f05fd authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[MERGE]

parents 293bf728 f45f8191
......@@ -25,6 +25,7 @@
#include <algorithm>
#include <vector>
#include "../../common/WAssert.h"
#include "../../common/WLogger.h"
#include "WKdTree.h"
......@@ -32,6 +33,7 @@
WKdTree::WKdTree( int size, float *pointArray ) :
m_size( size ), m_pointArray( pointArray )
{
WAssert( size > 2, "The current kD-tree implementation works only with at least 3 vertices." );
m_tree.clear();
m_tree.resize( size );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment