Changeset 260 for trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
- Timestamp:
- 09/08/05 01:52:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
r242 r260 7 7 #include "ViewCellBsp.h" 8 8 #include "ViewCell.h" 9 #include "Polygon3.h" ;9 #include "Polygon3.h" 10 10 11 11 … … 296 296 Mesh *mesh = new Mesh; 297 297 298 AxisAlignedBox3 box = tree.GetBoundingBox();299 ExportBox(box);300 301 298 //AxisAlignedBox3 box = tree.GetBoundingBox(); 299 //ExportBox(box); 300 301 while (!tStack.empty()) 302 302 { 303 303 BspNode *node = tStack.top(); … … 305 305 tStack.pop(); 306 306 307 if (tree.StorePolys()) // extract the polygons 308 { 309 PolygonContainer::const_iterator it; 310 PolygonContainer::const_iterator it_end = node->GetPolygons()->end(); 311 312 for (it = node->GetPolygons()->begin(); it != it_end; ++ it) 313 ExportPolygon(*it); 314 } 315 307 316 if (!node->IsLeaf()) 308 317 { … … 311 320 tStack.push(interior->GetFront()); 312 321 tStack.push(interior->GetBack()); 322 313 323 } 314 324 else 315 325 { 316 326 BspLeaf *leaf = dynamic_cast<BspLeaf *>(node); 317 // NOTE: could also export polygons to see if splits work318 if ( leaf->GetViewCell())327 // export view cell geometry 328 if (!tree.StorePolys() && leaf->GetViewCell()) 319 329 ExportViewCell(leaf->GetViewCell()); 320 330 } 321 331 } 322 332 323 ExportMesh(mesh);324 delete mesh;325 333 return true; 326 334 }
Note: See TracChangeset
for help on using the changeset viewer.