Ignore:
Timestamp:
08/24/06 18:05:53 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1272 r1279  
    499499        if ((int)(leaf->mObjects.size()) > mBvhStats.maxObjectRefs) 
    500500                mBvhStats.maxObjectRefs = (int)leaf->mObjects.size(); 
    501  
    502501} 
    503502 
     
    15941593} 
    15951594 
    1596 } 
    1597  
     1595 
     1596void BvhStatistics::Print(ostream &app) const 
     1597{ 
     1598        app << "=========== OspTree statistics ===============\n"; 
     1599 
     1600        app << setprecision(4); 
     1601 
     1602        app << "#N_CTIME  ( Construction time [s] )\n" << Time() << " \n"; 
     1603 
     1604        app << "#N_NODES ( Number of nodes )\n" << nodes << "\n"; 
     1605 
     1606        app << "#N_INTERIORS ( Number of interior nodes )\n" << Interior() << "\n"; 
     1607 
     1608        app << "#N_LEAVES ( Number of leaves )\n" << Leaves() << "\n"; 
     1609 
     1610        app << "#AXIS_ALIGNED_SPLITS (number of axis aligned splits)\n" << splits << endl; 
     1611 
     1612         
     1613        app << "#N_PMAXDEPTHLEAVES ( Percentage of leaves at maximum depth )\n"  
     1614                <<      maxDepthNodes * 100 / (double)Leaves() << endl; 
     1615 
     1616        app << "#N_PMINPVSLEAVES  ( Percentage of leaves with mininimal PVS )\n"  
     1617                << minPvsNodes * 100 / (double)Leaves() << endl; 
     1618 
     1619        app << "#N_MAXCOSTNODES  ( Percentage of leaves with terminated because of max cost ratio )\n" 
     1620                << maxCostNodes * 100 / (double)Leaves() << endl; 
     1621 
     1622        app << "#N_PMINPROBABILITYLEAVES  ( Percentage of leaves with mininum probability )\n" 
     1623                << minProbabilityNodes * 100 / (double)Leaves() << endl; 
     1624 
     1625        app << "#N_PMAXDEPTH ( Maximal reached depth )\n" << maxDepth << endl; 
     1626 
     1627        app << "#N_PMINDEPTH ( Minimal reached depth )\n" << minDepth << endl; 
     1628 
     1629        app << "#AVGDEPTH ( average depth )\n" << AvgDepth() << endl; 
     1630 
     1631        app << "#N_INVALIDLEAVES (number of invalid leaves )\n" << invalidLeaves << endl; 
     1632 
     1633        app << "#N_MAXOBJECTREFS  ( Max number of object refs / leaf )\n" << maxObjectRefs << "\n"; 
     1634 
     1635        //app << "#N_RAYS (number of rays / leaf)\n" << AvgRays() << endl; 
     1636         
     1637        app << "========== END OF VspTree statistics ==========\n"; 
     1638} 
     1639 
     1640 
     1641} 
Note: See TracChangeset for help on using the changeset viewer.