- // 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), material(0) {}
- int type;
- int wire_id;
- sgdVec3 vel;
- sgdVec3 rot;
- sgdVec3 pivot;
- const SGMaterial* material;
- };
-
- // compute the ground property of this leaf.
- static GroundProperty extractGroundProperty( ssgLeaf* leaf );
-
-
- static void velocityTransformTriangle(double dt, Triangle& dst,
- const Triangle& src);