Changeset 1010 for GTP/trunk/Lib/Vis
- Timestamp:
- 06/12/06 01:40:25 (19 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r1004 r1010 1 #include <time.h> 2 #include <iomanip> 3 #include <stack> 4 5 1 6 #include "ViewCell.h" 2 7 #include "Mesh.h" … … 8 13 #include "ViewCellsManager.h" 9 14 #include "Exporter.h" 10 11 #include <time.h>12 #include <iomanip>13 #include <stack>14 15 15 16 16 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.h
r1008 r1010 8 8 #include "Material.h" 9 9 #include "gzstream.h" 10 #include "VspOspTree.h" 10 11 11 12 12 namespace GtpVisibilityPreprocessor { … … 374 374 375 375 376 //typedef HierarchyLeafViewCell<VspLeaf *> VspViewCell;376 typedef HierarchyLeafViewCell<VspLeaf *> VspViewCell; 377 377 typedef HierarchyLeafViewCell<BspLeaf *> BspViewCell; 378 378 typedef HierarchyLeafViewCell<KdLeaf *> KdViewCell; -
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
r1008 r1010 3 3 #include <iomanip> 4 4 5 #include "ViewCell.h" 5 6 #include "Plane3.h" 6 7 #include "VspOspTree.h" 7 8 #include "Mesh.h" 8 9 #include "common.h" 9 #include "ViewCell.h"10 10 #include "Environment.h" 11 11 #include "Polygon3.h" … … 14 14 #include "Exporter.h" 15 15 #include "Plane3.h" 16 #include "ViewCellBsp.h"17 16 #include "ViewCellsManager.h" 18 17 #include "Beam.h" … … 401 400 (sizeof(VspOspTree) + 402 401 mVspStats.Leaves() * sizeof(VspLeaf) + 403 mCreatedViewCells * sizeof( BspViewCell) +402 mCreatedViewCells * sizeof(VspViewCell) + 404 403 mVspStats.pvs * sizeof(ObjectPvsData) + 405 404 mVspStats.Interior() * sizeof(VspInterior) + … … 604 603 { 605 604 VspLeaf *leaf = dynamic_cast<VspLeaf *>(newNode); 606 BspViewCell *viewCell = new BspViewCell();605 VspViewCell *viewCell = new VspViewCell(); 607 606 608 607 leaf->SetViewCell(viewCell); … … 1147 1146 } 1148 1147 1149 1150 BspNodeGeometry geomFront; 1151 BspNodeGeometry geomBack; 1152 1148 #if TODO 1153 1149 pFront = geomFront.GetVolume(); 1154 1150 pBack = pOverall - pFront; 1155 1151 #endif 1156 1152 1157 1153 … … 2056 2052 ViewCell *VspOspTree::GetViewCell(const Vector3 &point, const bool active) 2057 2053 { 2058 #if TODO2059 2054 if (mRoot == NULL) 2060 2055 return NULL; … … 2078 2073 { 2079 2074 VspInterior *interior = dynamic_cast<VspInterior *>(node); 2080 2075 #if TODO 2081 2076 // random decision 2082 2077 if (interior->GetPlane().Side(point) < 0) … … 2084 2079 else 2085 2080 nodeStack.push(interior->GetFront()); 2081 #endif 2086 2082 } 2087 2083 } … … 2091 2087 else 2092 2088 return viewcell; 2093 #endif2094 2089 } 2095 2090 -
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1008 r1010 2 2 #define _VspOspTree_H__ 3 3 4 #include <stack> 5 4 6 #include "Mesh.h" 5 7 #include "Containers.h" 6 #include "Polygon3.h"7 #include <stack>8 8 #include "Statistics.h" 9 9 #include "VssRay.h" … … 15 15 16 16 class ViewCellLeaf; 17 class VspViewCell;17 //class VspViewCell; 18 18 class Plane3; 19 19 class AxisAlignedBox3;
Note: See TracChangeset
for help on using the changeset viewer.