Changeset 1767 for GTP/trunk/Lib/Vis
- Timestamp:
- 11/19/06 15:46:53 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1765 r1767 100 100 return idx; 101 101 } 102 102 103 103 104 -
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r1765 r1767 1493 1493 } 1494 1494 1495 // -- compute cost 1495 /////// 1496 //-- compute cost 1497 1496 1498 const int lowerPvsLimit = mViewCellsManager->GetMinPvsSize(); 1497 1499 const int upperPvsLimit = mViewCellsManager->GetMaxPvsSize(); … … 1610 1612 } 1611 1613 else 1612 { //-- split plane position is spatial median1613 1614 { 1615 //-- split plane position is spatial median 1614 1616 nPosition[axis] = (box.Min()[axis] + box.Max()[axis]) * 0.5f; 1615 1617 Vector3 normal(0,0,0); normal[axis] = 1.0f; … … 1625 1627 nProbBack[axis]); 1626 1628 1629 // create back geometry from box 1630 1631 // NOTE: the geometry is returned from the function so we 1632 // don't have to recompute it when possible 1627 1633 Vector3 pos; 1628 1634 1629 // create back geometry from box1630 // NOTE: the geometry is returned from the function so we1631 // don't have to recompute it when possible1632 1635 pos = box.Max(); pos[axis] = nPosition[axis]; 1633 1636 AxisAlignedBox3 bBox(box.Min(), pos); 1637 1634 1638 PolygonContainer fPolys; 1635 1639 bBox.ExtractPolys(fPolys); … … 1637 1641 nBackGeom[axis] = new BspNodeGeometry(fPolys); 1638 1642 1643 //////////// 1639 1644 //-- create front geometry from box 1645 1640 1646 pos = box.Min(); pos[axis] = nPosition[axis]; 1641 1647 AxisAlignedBox3 fBox(pos, box.Max()); … … 1685 1691 } 1686 1692 1693 ////////// 1687 1694 //-- assign values 1688 1695
Note: See TracChangeset
for help on using the changeset viewer.