Added basic BSP test

This commit is contained in:
Guilhem Lavaux 2012-09-17 17:24:04 -04:00
parent dc03871f37
commit 63223a661f
4 changed files with 22 additions and 2 deletions

View File

@ -36,3 +36,6 @@ target_link_libraries(testEskow ${tolink})
add_executable(testAlgo testAlgo.cpp)
target_link_libraries(testAlgo ${tolink})
add_executable(testBSP testBSP.cpp)
target_link_libraries(testBSP ${tolink})

View File

@ -1,3 +1,4 @@
#if 0
#include "bsp_simple.hpp"
int main(int argc, char **argv)
@ -10,3 +11,5 @@ int main(int argc, char **argv)
return 0;
}
#endif
int main() {}

View File

@ -154,6 +154,8 @@ namespace CosmoTool
f.data = data;
insert(f);
}
bool inside(const typename space_t::coord_t& p) const;
};
};

View File

@ -98,7 +98,19 @@ namespace CosmoTool
*(*i) = current;
allocated.push(current);
}
}
template<typename T, typename PType, int N>
bool BSP<T,PType,N>::inside(const typename space_t::coord_t& p) const
{
node_t *current = root;
do
{
}
while();
current
}
};