source: trunk/VUT/GtpVisibility/src/PreprocessingManager.cpp @ 71

Revision 71, 730 bytes checked in by mattausch, 19 years ago (diff)
Line 
1#include "PreprocessingManager.h"
2
3namespace GtpVisibility {
4 
5PreprocessingManager::PreprocessingManager(HierarchyInterface *hierarchyInterface)
6{
7}
8
9PreprocessingManager::~PreprocessingManager()
10{
11}
12
13bool PreprocessingManager::GetPVS(const Vector3 &center,
14                                                                  const float radius,
15                                                                  InfoContainer<NodeInfo> *visibleNodes,
16                                                                  InfoContainer<MeshInfo> *visibleMeshes)
17{
18    vector<int> viewCellIds;
19    if (LocateViewCellIds(center, radius, &viewCellIds))
20        {
21                for (vector<int>::iterator ci = viewCellIds.begin(); ci != viewCellIds.end(); ci++)
22                {
23                        AddViewCellPVS(*ci, visibleNodes, visibleMeshes );
24                        // remove duplicates of the PVS entries if any?
25                }
26                return true;
27    }
28    return false;
29  }
30 
31};
Note: See TracBrowser for help on using the repository browser.