Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2404 - trunk/Model/Groups


Chronological Thread 
  • From: "Andrew Kensler" < >
  • To:
  • Subject: [Manta] r2404 - trunk/Model/Groups
  • Date: Thu, 16 Apr 2009 15:30:46 -0600 (MDT)

Author: aek
Date: Thu Apr 16 15:30:44 2009
New Revision: 2404

Modified:
   trunk/Model/Groups/DynBVH.cc
Log:
Fix to reset primitive bounding boxes when doing a rebuild.  Doing a full
tree rebuild during an animation causes the trees to blow up otherwise.



Modified: trunk/Model/Groups/DynBVH.cc
==============================================================================
--- trunk/Model/Groups/DynBVH.cc        (original)
+++ trunk/Model/Groups/DynBVH.cc        Thu Apr 16 15:30:44 2009
@@ -1571,6 +1571,7 @@
 
   for ( size_t i = 0; i < currGroup->size(); i++ ) {
     object_ids[i] = i;
+    obj_bounds[i].reset();
     currGroup->get(i)->computeBounds(context, obj_bounds[i]);
     obj_centroids[i] = obj_bounds[i].center();
   }


  • [Manta] r2404 - trunk/Model/Groups, Andrew Kensler, 04/16/2009

Archive powered by MHonArc 2.6.16.

Top of page