Changeset 265 for trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
- Timestamp:
- 09/13/05 18:31:48 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
r264 r265 395 395 SetFilled(); 396 396 397 ViewCellContainer mFoundViewCells; 398 397 399 while (!tStack.empty()) 398 400 { … … 422 424 ViewCell *viewCell = dynamic_cast<BspLeaf *>(node)->GetViewCell(); 423 425 424 if (viewCell) // export view cell geometry425 ExportViewCell(viewCell);426 if (viewCell) 427 mFoundViewCells.push_back(viewCell); 426 428 } 427 429 } 428 430 431 if (!tree.StorePolys()) 432 { 433 //move consecutive duplicates past the end; store new end 434 ViewCellContainer::iterator new_end = unique(mFoundViewCells.begin(), mFoundViewCells.end()); 435 // delete all elements past new_end 436 mFoundViewCells.erase(new_end, mFoundViewCells.end()); 437 ExportViewCells(&mFoundViewCells); 438 } 439 429 440 return true; 430 441 }
Note: See TracChangeset
for help on using the changeset viewer.