source: trunk/VUT/GtpVisibilityPreprocessor/src/ViewCell.cpp @ 439

Revision 439, 568 bytes checked in by mattausch, 19 years ago (diff)

added vview cell manager functionality

Line 
1#include "ViewCell.h"
2#include "Mesh.h"
3#include "Intersectable.h"
4#include "MeshKdTree.h"
5#include "Triangle3.h"
6
7ViewCell::ViewCell(): MeshInstance(NULL), mPiercingRays(0)
8{
9}
10
11ViewCell::ViewCell(Mesh *mesh): MeshInstance(mesh), mPiercingRays(0)
12{
13}
14
15const ViewCellPvs &ViewCell::GetPvs() const
16{
17        return mPvs;
18}
19
20ViewCellPvs &ViewCell::GetPvs()
21{
22        return mPvs;
23}
24
25int ViewCell::Type() const
26{
27        return VIEW_CELL;
28}
29
30void ViewCell::AddPassingRay(const Ray &ray, const int contributions)
31{
32        mPassingRays.AddRay(ray, contributions);
33}
Note: See TracBrowser for help on using the repository browser.