Added basic BSP test
This commit is contained in:
parent
dc03871f37
commit
63223a661f
4 changed files with 22 additions and 2 deletions
|
@ -154,6 +154,8 @@ namespace CosmoTool
|
|||
f.data = data;
|
||||
insert(f);
|
||||
}
|
||||
|
||||
bool inside(const typename space_t::coord_t& p) const;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue