Ignore:
Timestamp:
02/05/06 11:03:17 (18 years ago)
Author:
mattausch
Message:

added cutting plane and enlarging view space

File:
1 edited

Legend:

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

    r590 r598  
    4141{ 
    4242  CLEAR_CONTAINER(mVssRays); 
     43  DEL_PTR(mViewSpaceBox); 
    4344} 
    4445 
     
    526527  if (mUseViewSpaceBox) 
    527528  { 
    528           mViewSpaceBox = box; 
     529          if (0) 
     530                mViewSpaceBox = box; 
     531          else 
     532          { 
     533                // HACK: enlarge in y directon 
     534                mViewSpaceBox = new AxisAlignedBox3(mKdTree->GetBox()); 
     535                //Vector3 pmin = mViewSpaceBox->Min(); 
     536                Vector3 size = mViewSpaceBox->Size(); 
     537                //size[1] *= 1.25; 
     538                Vector3 enlarge(size[0] * 0.1f, size[1] * 0.0f, size[2] * 0.1); 
     539 
     540                mViewSpaceBox->Enlarge(enlarge); 
     541          } 
     542 
     543          //Debug << "view space box: " << *mViewSpaceBox << endl; 
    529544  } 
    530545  else 
Note: See TracChangeset for help on using the changeset viewer.