Ignore:
Timestamp:
06/25/06 06:54:53 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp

    r1027 r1052  
    564564        box.SetMax(1, box.Min(1)); 
    565565 
    566   cout<<"mUseViewSpaceBox="<<mUseViewSpaceBox<<endl; 
     566  cout << "use view space box=" << mUseViewSpaceBox<<endl; 
    567567 
    568568 
     
    575575          else 
    576576          { 
    577                   // HACK: enlarge in y directon 
    578577                  mViewSpaceBox = new AxisAlignedBox3(mKdTree->GetBox()); 
    579578 
    580                   if (1)  
     579                  if (0)  
    581580                  { 
    582                           //Vector3 pmin = mViewSpaceBox->Min(); 
     581                          // HACK: enlarge in y directon 
    583582                          Vector3 size = mViewSpaceBox->Size(); 
    584                           //size[1] *= 1.25; 
    585                           //Vector3 enlarge(size[0] * 0.25f, size[1] * 0.0f, size[2] * 0.25f); 
    586                           Vector3 enlarge(size[0] * 4.0f, 0.0f, 0.0f); 
    587  
    588                           //mViewSpaceBox->Enlarge(enlarge); 
     583                         
     584                          size[1] *= 1.25; 
     585                          Vector3 enlarge(size[0] * 0.25f, size[1] * 0.0f, size[2] * 0.25f); 
     586                          //Vector3 enlarge(size[0] * 4.0f, 0.0f, 0.0f); 
     587 
     588                          mViewSpaceBox->Enlarge(enlarge); 
    589589                          mViewSpaceBox->SetMax(mViewSpaceBox->Max() + enlarge); 
    590590                  }  
    591591                  else  
    592592                  { 
     593                          AxisAlignedBox3 tbox(*mViewSpaceBox); 
     594 
     595                          Vector3 size = mViewSpaceBox->Size(); 
     596                          tbox.SetMax(0, mViewSpaceBox->Max(0) + size[0] * 0.5); 
     597                          tbox.SetMin(0, mViewSpaceBox->Min(0) + size[0]); 
     598                          *mViewSpaceBox = tbox; 
     599 
    593600                          // $$ JB temporary 
    594                           AxisAlignedBox3 tempbox = *mViewSpaceBox; 
     601                          /*AxisAlignedBox3 tempbox = *mViewSpaceBox; 
    595602                           
    596603                          float s = tempbox.Size(0); 
     
    599606                          tempbox.SetMax(0, box.Max(0) + s*0.8f); 
    600607                          tempbox.SetMin(0, box.Min(0) + s*0.8f); 
    601                           *mViewSpaceBox = tempbox; 
     608                          *mViewSpaceBox = tempbox;*/ 
    602609                  }              
    603610          } 
Note: See TracChangeset for help on using the changeset viewer.