Changeset 1010 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.cpp
- Timestamp:
- 06/12/06 01:40:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.