- // Fills the environment cache with everything inside the sphere sp.
- void cache_fill(ssgBranch *branch, sgdMat4 xform,
- sgdSphere* sp, sgdVec3 down, sgdSphere* wsp);
-
- // compute the ground property of this leaf.
- void putSurfaceLeafIntoCache(const sgdSphere *sp, const sgdMat4 xform,
- bool sphIsec, sgdVec3 down, ssgLeaf *l);
-
- void putLineLeafIntoCache(const sgdSphere *wsp, const sgdMat4 xform,
- ssgLeaf *l);
-
- // Helper class to hold some properties of the ground triangle.
- struct GroundProperty {
- GroundProperty() : type(0) {}
- int type;
- int wire_id;
- sgdVec3 vel;
- sgdVec3 rot;
- sgdVec3 pivot;
- // not yet implemented ...
-// double loadCapacity;
- };
+#ifdef GROUNDCACHE_DEBUG
+ SGTimeStamp _lookupTime;
+ unsigned _lookupCount;
+ SGTimeStamp _buildTime;
+ unsigned _buildCount;