source: trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp @ 194

Revision 194, 535 bytes checked in by mattausch, 19 years ago (diff)

started with bsp viewcells

Line 
1#include "Plane3.h"
2#include "ViewCellBsp.h"
3#include "Mesh.h"
4
5class ViewCell;
6
7//namespace GtpVisibilityPreprocessor {
8
9bool BSPNode::IsRoot() const
10{
11        return mParent == NULL;
12}
13
14void BSPNode::SplitPoly(Plane3 *plane, Mesh *viewcell)
15{
16}
17
18bool BSPInterior::IsLeaf() const
19{
20        return false;
21}
22
23BSPLeaf::BSPLeaf(ViewCell *viewCell): mViewCell(viewCell)
24{
25}
26
27bool BSPLeaf::IsLeaf() const
28{
29        return true;
30}
31
32BSPTree::BSPTree(ViewCell *cell)
33{
34        mRootCell = cell;
35        mRoot = new BSPLeaf(mRootCell);
36}
37
38//} // GtpVisibilityPreprocessor
Note: See TracBrowser for help on using the repository browser.