Changeset 483 for trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
- Timestamp:
- 12/27/05 19:32:16 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r482 r483 223 223 } 224 224 225 void VspBspTree::Construct(const VssRayContainer &sampleRays) 225 void VspBspTree::Construct(const VssRayContainer &sampleRays, 226 AxisAlignedBox3 *forcedBoundingBox) 226 227 { 227 228 mStat.nodes = 1; … … 259 260 } 260 261 261 // compute bounding box 262 Polygon3::IncludeInBox(polys, mBox); 262 //-- compute bounding box 263 if (forcedBoundingBox) 264 mBox = *forcedBoundingBox; 265 else 266 Polygon3::IncludeInBox(polys, mBox); 263 267 264 268 //-- store rays … … 269 273 float minT, maxT; 270 274 271 // TODO: not very efficient to implictly cast between rays types ...275 // TODO: not very efficient to implictly cast between rays types 272 276 if (mBox.GetRaySegment(*ray, minT, maxT)) 273 277 { … … 1858 1862 node = in->GetBack(); 1859 1863 1860 if (extSide <= 0) // plane does not split ray => no far child1864 if (extSide <= 0) // plane does not split ray => no far child 1861 1865 continue; 1862 1866
Note: See TracChangeset
for help on using the changeset viewer.