Revision: 41473
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41473&view=rev
Author:   erikgreenwald
Date:     2010-11-29 22:07:19 +0000 (Mon, 29 Nov 2010)

Log Message:
-----------
split actual bbox info from fuzzed info

Modified Paths:
--------------
    brlcad/branches/bottie/include/tie.h
    brlcad/branches/bottie/src/librt/primitives/bot/btg.c
    brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c

Modified: brlcad/branches/bottie/include/tie.h
===================================================================
--- brlcad/branches/bottie/include/tie.h        2010-11-29 21:59:00 UTC (rev 
41472)
+++ brlcad/branches/bottie/include/tie.h        2010-11-29 22:07:19 UTC (rev 
41473)
@@ -139,7 +139,7 @@
     unsigned int kdmethod;             /* Optimal or Fast */
     /* all tfloat altered stuff should be at the end. */
     TIE_3 min, max;
-    vect_t mid;
+    vect_t amin, amax, mid;
     fastf_t radius;
 #if TIE_PRECISION == 0
     tfloat _pad[6];    /* so both float and double variants are the same size. 
*/

Modified: brlcad/branches/bottie/src/librt/primitives/bot/btg.c
===================================================================
--- brlcad/branches/bottie/src/librt/primitives/bot/btg.c       2010-11-29 
21:59:00 UTC (rev 41472)
+++ brlcad/branches/bottie/src/librt/primitives/bot/btg.c       2010-11-29 
22:07:19 UTC (rev 41473)
@@ -84,8 +84,8 @@
 
     tie_prep1((struct tie_s *)bot->tie);
 
-    VMOVE(stp->st_min, tie->min.v);
-    VMOVE(stp->st_max, tie->max.v);
+    VMOVE(stp->st_min, tie->amin);
+    VMOVE(stp->st_max, tie->amax);
     VMOVE(stp->st_center, tie->mid);
     stp->st_aradius = tie->radius;
     stp->st_bradius = tie->radius;

Modified: brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c
===================================================================
--- brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c        
2010-11-29 21:59:00 UTC (rev 41472)
+++ brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c        
2010-11-29 22:07:19 UTC (rev 41473)
@@ -927,6 +927,8 @@
            bu_free (((tie_geom_t *)(tie->kdtree->data))->tri_list, "freeing 
tri list");
     }
 
+    VMOVE(tie->amin, tie->min.v);
+    VMOVE(tie->amax, tie->max.v);
 /*
  * Compute Floating Fuzz Precision Value
  * For now, take largest dimension as basis for TIE_PREC


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to