Dang I thought I checked that. Why dont the kdtree and grid act more like the BVH and build during preprocess if needed?
On Feb 7, 2008, at 11:51 AM, "Thiago Ize" <thiago@sci.utah.edu> wrote:
Author: thiago
Date: Thu Feb 7 12:51:08 2008
New Revision: 2042
Modified:
trunk/scenes/triangleSceneViewer.cc
Log:
fixing kdtree and CGT not working after the previous commit.
Modified: trunk/scenes/triangleSceneViewer.cc
==============================================================================
--- trunk/scenes/triangleSceneViewer.cc (original)
+++ trunk/scenes/triangleSceneViewer.cc Thu Feb 7 12:51:08 2008
@@ -175,6 +175,7 @@
// the animation class.
Mesh* singleFrame = LoadModel(fileNames[0], triangleType, useFaceNormals, interpolateNormals);
as->setGroup(singleFrame);
+ as->rebuild();
group->add(as);
}
Archive powered by MHonArc 2.6.16.