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

@ -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
}
};