Commit Graph

187 Commits

Author SHA1 Message Date
Jackson Campolattaro 4a2bbff45a Add param documentation to all public member functions 2020-07-16 10:49:27 -04:00
Jackson Campolattaro f0c4b6016d Add brief documentation for bbox and nearest_k_neighbours 2020-07-16 10:40:10 -04:00
Jackson Campolattaro 498ac2fd21 Octree now outperforms naive for over 1000 points 2020-07-15 21:49:24 -04:00
Jackson Campolattaro c6e52a6f43 Fix error setting location when building a node 2020-07-15 21:40:55 -04:00
Jackson Campolattaro 9f4005252a Fix indentation of octree pretty-print 2020-07-15 14:41:00 -04:00
Jackson Campolattaro d6b41c8875 Add bbox function for getting the bounding box of a node 2020-07-15 12:13:50 -04:00
Jackson Campolattaro 7d0ef74b71 Use pairs to map each point to its distance from the search point, reducing recalculation 2020-07-15 11:26:16 -04:00
Jackson Campolattaro b866d5a0c3 Nearest neighbour algorithm now skips nodes, but not yet enough to be faster than the naive algorithm 2020-07-15 11:02:32 -04:00
Jackson Campolattaro c48ca1d97f Add Bbox construction from node 2020-07-15 10:49:09 -04:00
Jackson Campolattaro e8ad665b0c Add do_intersect invocation 2020-07-15 10:31:48 -04:00
Jackson Campolattaro 244bf6e30a Add Sphere typedef 2020-07-15 10:26:27 -04:00
Jackson Campolattaro d5c1770024 Outline intersection method between nodes and spheres 2020-07-15 10:13:56 -04:00
Jackson Campolattaro 76a59e5996 Remove un-simplified algorithm, rename simple version 2020-07-14 21:44:13 -04:00
Jackson Campolattaro e9b9c1df3d Make the simplified algorithm functional, but slower than the brute force solution 2020-07-14 21:42:42 -04:00
Jackson Campolattaro 1ee73d70a9 Flesh out the algorithm's outline 2020-07-14 18:34:24 -04:00
Jackson Campolattaro 0d4923bbd0 Flesh out the algorithm's outline 2020-07-14 18:32:55 -04:00
Jackson Campolattaro 5da23c2698 Fix iteration over node children 2020-07-14 17:27:09 -04:00
Jackson Campolattaro 4b0cd66a10 Add largest_distance arg to simplified recursive algorithm 2020-07-14 16:15:59 -04:00
Jackson Campolattaro b93bff7107 Add Node argument to simple recursive algorithm 2020-07-14 16:13:35 -04:00
Jackson Campolattaro 704ff6f381 Implement nearest neighbours recursive caller method 2020-07-14 15:14:47 -04:00
Jackson Campolattaro 7a1f10f7d0 Begin defining a simplified nearest neighbours algorithm 2020-07-14 15:01:57 -04:00
Jackson Campolattaro 5c7316c5a5 Recursive nearest neighbours now sorts its node queue 2020-07-14 11:30:56 -04:00
Jackson Campolattaro 05f26aff6b Add recursive invocation 2020-07-13 16:01:52 -04:00
Jackson Campolattaro fcf9ed91ee Begin outlining recursive nearest neighbour search 2020-07-13 15:30:59 -04:00
Jackson Campolattaro 1c23d1572e Determine function signature for recursive neighbours method 2020-07-13 14:23:43 -04:00
Jackson Campolattaro ab6ecb6bbb Add nearest_k_neighbours_recursive private method stub 2020-07-13 14:02:27 -04:00
Jackson Campolattaro c3c299d588 Nearest_k_neighbours is now const 2020-07-13 13:00:10 -04:00
Jackson Campolattaro 736bcb04fb Add placeholder nearest_k_neighbours with testing 2020-07-13 10:55:32 -04:00
Jackson Campolattaro 29394deb7c Move pretty-printing responsibility to octree ostream operator 2020-07-10 12:45:14 -04:00
Jackson Campolattaro 40a2d1844b Add doxygen comment stubs to walkers 2020-07-10 12:36:42 -04:00
Jackson Campolattaro 86c627b1da Add a short description of the locate method 2020-07-10 12:25:28 -04:00
Jackson Campolattaro 7be1861444 Implement and test locate() 2020-07-09 23:37:32 -04:00
Jackson Campolattaro ff40de6ea0 Move std::endl out of node ostream operator 2020-07-09 23:27:47 -04:00
Jackson Campolattaro 836e4710b2 Improve Index printout 2020-07-09 23:26:45 -04:00
Jackson Campolattaro 6d2281b13d Update node equality documentation 2020-07-09 13:33:03 -04:00
Jackson Campolattaro 4bb0b6804b Node equality now compares location 2020-07-09 13:31:31 -04:00
Jackson Campolattaro ea20663f13 Add placeholder doxygen comment for locate() 2020-07-09 13:15:27 -04:00
Jackson Campolattaro 06815b9b7c Add outline of locate() implementation 2020-07-09 13:14:37 -04:00
Jackson Campolattaro 5cb4e73f40 Add simple locate test for a tree that only has a root node 2020-07-09 12:50:38 -04:00
Jackson Campolattaro f25b42ae4a Node comparison is now const for both nodes 2020-07-09 12:48:48 -04:00
Jackson Campolattaro e730c72814 Add locate method stub 2020-07-09 11:02:35 -04:00
Jackson Campolattaro 3ed346f489 Remove redundant `nodes` method 2020-07-09 10:47:40 -04:00
Jackson Campolattaro d701daf93d Replace `Preorder_tree_walker` with `Preorder` 2020-07-09 10:46:47 -04:00
Jackson Campolattaro 167b5e20bc Replace invocations of `nodes` method with new `walk` method 2020-07-09 10:43:19 -04:00
Jackson Campolattaro 25101d4309 Remove second boost bind header 2020-07-09 10:06:42 -04:00
Jackson Campolattaro 2b31cd4f68 Remove boost bind header 2020-07-09 10:06:21 -04:00
Simon Giraudot 909bbbfe6a Fix walker + some corrections 2020-07-09 09:47:40 +02:00
Jackson Campolattaro 6d9c83b760 Fix namespace indentation 2020-07-08 13:52:53 -04:00
Jackson Campolattaro af2c28e40c Add demonstration of walker failure 2020-07-08 13:23:29 -04:00
Jackson Campolattaro 9e3b251ce9 Attempt several tree walker solutions 2020-07-07 12:40:24 -04:00