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

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