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 |
|
---|
7 | ViewCell::ViewCell(): MeshInstance(NULL), mPiercingRays(0)
|
---|
8 | {
|
---|
9 | }
|
---|
10 |
|
---|
11 | ViewCell::ViewCell(Mesh *mesh): MeshInstance(mesh), mPiercingRays(0)
|
---|
12 | {
|
---|
13 | }
|
---|
14 |
|
---|
15 | const ViewCellPvs &ViewCell::GetPvs() const
|
---|
16 | {
|
---|
17 | return mPvs;
|
---|
18 | }
|
---|
19 |
|
---|
20 | ViewCellPvs &ViewCell::GetPvs()
|
---|
21 | {
|
---|
22 | return mPvs;
|
---|
23 | }
|
---|
24 |
|
---|
25 | int ViewCell::Type() const
|
---|
26 | {
|
---|
27 | return VIEW_CELL;
|
---|
28 | }
|
---|
29 |
|
---|
30 | void 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.