Revision 439,
568 bytes
checked in by mattausch, 19 years ago
(diff) |
added vview cell manager functionality
|
Rev | Line | |
---|
[235] | 1 | #include "ViewCell.h"
|
---|
| 2 | #include "Mesh.h"
|
---|
[308] | 3 | #include "Intersectable.h"
|
---|
[235] | 4 | #include "MeshKdTree.h"
|
---|
| 5 | #include "Triangle3.h"
|
---|
| 6 |
|
---|
[352] | 7 | ViewCell::ViewCell(): MeshInstance(NULL), mPiercingRays(0)
|
---|
[265] | 8 | {
|
---|
| 9 | }
|
---|
[235] | 10 |
|
---|
[372] | 11 | ViewCell::ViewCell(Mesh *mesh): MeshInstance(mesh), mPiercingRays(0)
|
---|
| 12 | {
|
---|
| 13 | }
|
---|
| 14 |
|
---|
[419] | 15 | const ViewCellPvs &ViewCell::GetPvs() const
|
---|
| 16 | {
|
---|
| 17 | return mPvs;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
[372] | 20 | ViewCellPvs &ViewCell::GetPvs()
|
---|
| 21 | {
|
---|
| 22 | return mPvs;
|
---|
| 23 | }
|
---|
| 24 |
|
---|
[235] | 25 | int ViewCell::Type() const
|
---|
| 26 | {
|
---|
[308] | 27 | return VIEW_CELL;
|
---|
[235] | 28 | }
|
---|
| 29 |
|
---|
[372] | 30 | void ViewCell::AddPassingRay(const Ray &ray, const int contributions)
|
---|
| 31 | {
|
---|
| 32 | mPassingRays.AddRay(ray, contributions);
|
---|
[366] | 33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.