Changeset 1052 for GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
- Timestamp:
- 06/25/06 06:54:53 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VssPreprocessor.cpp
r1027 r1052 564 564 box.SetMax(1, box.Min(1)); 565 565 566 cout <<"mUseViewSpaceBox="<<mUseViewSpaceBox<<endl;566 cout << "use view space box=" << mUseViewSpaceBox<<endl; 567 567 568 568 … … 575 575 else 576 576 { 577 // HACK: enlarge in y directon578 577 mViewSpaceBox = new AxisAlignedBox3(mKdTree->GetBox()); 579 578 580 if ( 1)579 if (0) 581 580 { 582 // Vector3 pmin = mViewSpaceBox->Min();581 // HACK: enlarge in y directon 583 582 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); 589 589 mViewSpaceBox->SetMax(mViewSpaceBox->Max() + enlarge); 590 590 } 591 591 else 592 592 { 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 593 600 // $$ JB temporary 594 AxisAlignedBox3 tempbox = *mViewSpaceBox;601 /*AxisAlignedBox3 tempbox = *mViewSpaceBox; 595 602 596 603 float s = tempbox.Size(0); … … 599 606 tempbox.SetMax(0, box.Max(0) + s*0.8f); 600 607 tempbox.SetMin(0, box.Min(0) + s*0.8f); 601 *mViewSpaceBox = tempbox; 608 *mViewSpaceBox = tempbox;*/ 602 609 } 603 610 }
Note: See TracChangeset
for help on using the changeset viewer.