Ignore:
Timestamp:
12/27/05 19:32:16 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp

    r482 r483  
    223223} 
    224224 
    225 void VspBspTree::Construct(const VssRayContainer &sampleRays) 
     225void VspBspTree::Construct(const VssRayContainer &sampleRays, 
     226                                                   AxisAlignedBox3 *forcedBoundingBox) 
    226227{ 
    227228    mStat.nodes = 1; 
     
    259260        } 
    260261 
    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); 
    263267 
    264268        //-- store rays 
     
    269273                float minT, maxT; 
    270274 
    271                 // TODO: not very efficient to implictly cast between rays types ... 
     275                // TODO: not very efficient to implictly cast between rays types 
    272276                if (mBox.GetRaySegment(*ray, minT, maxT)) 
    273277                { 
     
    18581862                                node = in->GetBack(); 
    18591863 
    1860                                 if(extSide <= 0) // plane does not split ray => no far child 
     1864                                if (extSide <= 0) // plane does not split ray => no far child 
    18611865                                        continue; 
    18621866 
Note: See TracChangeset for help on using the changeset viewer.