Changeset 1084 for GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
- Timestamp:
- 07/06/06 08:55:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspOspTree.h
r1077 r1084 871 871 The split candidates are generated on possible visibility 872 872 events (i.e., where ray segments intersect the ray boundaries). 873 The sorted candidates are needed to compute the SAH.873 The sorted candidates are needed to compute the heuristics. 874 874 875 875 @param polys the input for choosing split candidates … … 882 882 float maxBand); 883 883 884 /** Computes pvs increase with respect to the previous pvs for SAH.884 /** Computes pvs increase with respect to the previous pvs for heuristics. 885 885 */ 886 886 int GetPvsIncr(Intersectable *object, const KdPvsMap &activeNodes); … … 910 910 void AddContriToPvs(KdLeaf *leaf, int &pvs) const; 911 911 912 /** Prepares objects for SAH.912 /** Prepares objects for the heuristics. 913 913 @returns pvs size of the ray container 914 914 */ … … 1438 1438 float &pBack); 1439 1439 1440 /** Sorts split candidates for surface area heuristics foraxis aligned splits.1441 @param polys the input for choosing split candidates1440 /** Sorts split candidates for cost heuristics using axis aligned splits. 1441 @param node the current node 1442 1442 @param axis the current split axis 1443 @param splitCandidates returns sorted list of split candidates 1444 */ 1445 void SortSplitCandidates(const RayInfoContainer &rays, 1446 const int axis, 1447 float minBand, 1448 float maxBand); 1443 */ 1444 void SortSplitCandidates(KdLeaf *node, const int axis); 1449 1445 1450 1446 /** Computes best cost for axis aligned planes. 1451 1447 */ 1452 /* float EvalLocalCostHeuristics(const RayInfoContainer &rays, 1453 const AxisAlignedBox3 &box, 1454 const int pvsSize, 1455 const int axis, 1456 float &position); 1457 */ 1458 float EvalLocalCostHeuristics(BspLeaf *node, 1448 float EvalLocalCostHeuristics(KdLeaf *node, 1459 1449 const AxisAlignedBox3 &box, 1460 1450 const int axis, … … 1504 1494 inline bool GlobalTerminationCriteriaMet(const OspTraversalData &data) const; 1505 1495 1496 float SelectSplitPlane(const VspTraversalData &tData, 1497 AxisAlignedPlane &plane, 1498 float &pFront, 1499 float &pBack); 1506 1500 /** Adds ray sample contributions to the PVS. 1507 1501 @param sampleContributions the number contributions of the samples … … 1543 1537 void AddContriToPvs(Intersectable *object, int &pvs) const; 1544 1538 1545 /** Prepares objects for SAH.1546 @returns pvs size of the ray container1547 */ 1548 int PrepareHeuristics(const RayInfoContainer &rays);1539 /** Prepares objects for the cost heuristics. 1540 @returns pvs size of the node 1541 */ 1542 int PrepareHeuristics(const ObjectContainer &objects); 1549 1543 1550 1544 int PrepareHeuristics(Intersectable *object); … … 1631 1625 int mCreatedViewCells; 1632 1626 1627 float mSplitBorder; 1628 1629 1633 1630 private: 1634 1631
Note: See TracChangeset
for help on using the changeset viewer.