Changeset 1121 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
- Timestamp:
- 07/12/06 00:52:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellBsp.h
r1084 r1121 51 51 */ 52 52 float GetArea() const; 53 53 54 /** Returns volume of this node geometry. 54 55 */ … … 215 216 } 216 217 217 int Nodes() const { return nodes;}218 int Nodes() const { return nodes; } 218 219 int Interior() const { return nodes / 2; } 219 220 int Leaves() const { return (nodes / 2) + 1; } 220 221 221 222 // TODO: computation wrong 222 double AvgDepth() const { return accumDepth / (double)Leaves(); };223 double AvgRays() const { return accumRays / (double)Leaves(); };223 double AvgDepth() const { return accumDepth / (double)Leaves(); } 224 double AvgRays() const { return accumRays / (double)Leaves(); } 224 225 225 226 void Reset() … … 304 305 bool IsSibling(BspNode *n) const; 305 306 306 /** returns depth of the node.307 /** Returns depth of the node. 307 308 */ 308 309 int GetDepth() const; 309 310 310 /** returns true if the whole subtree is valid311 /** Returns true if the whole subtree is valid 311 312 */ 312 313 bool TreeValid() const; 313 314 315 /** Sets the valid flag for the subtree with this node as root. 316 */ 314 317 void SetTreeValid(const bool v); 315 318
Note: See TracChangeset
for help on using the changeset viewer.