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

Revision 190, 457 bytes checked in by mattausch, 19 years ago (diff)

started bspviecells

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