Revision: 56736
          http://sourceforge.net/p/brlcad/code/56736
Author:   brlcad
Date:     2013-08-10 05:43:01 +0000 (Sat, 10 Aug 2013)
Log Message:
-----------
cannot afford to be doing this bombing validity test during ray tracing.  let 
the calling application test.

Modified Paths:
--------------
    brlcad/trunk/src/librt/bundle.c
    brlcad/trunk/src/librt/shoot.c

Modified: brlcad/trunk/src/librt/bundle.c
===================================================================
--- brlcad/trunk/src/librt/bundle.c     2013-08-10 05:37:33 UTC (rev 56735)
+++ brlcad/trunk/src/librt/bundle.c     2013-08-10 05:43:01 UTC (rev 56736)
@@ -125,16 +125,6 @@
               ap->a_onehit);
        VPRINT("Dir", ap->a_ray.r_dir);
     }
-    if (RT_BADVEC(ap->a_ray.r_pt)||RT_BADVEC(ap->a_ray.r_dir)) {
-       bu_log("\n**********shootray cpu=%d  %d, %d lvl=%d (%s)\n",
-              resp->re_cpu,
-              ap->a_x, ap->a_y,
-              ap->a_level,
-              ap->a_purpose != (char *)0 ? ap->a_purpose : "?");
-       VPRINT(" r_pt", ap->a_ray.r_pt);
-       VPRINT("r_dir", ap->a_ray.r_dir);
-       bu_bomb("rt_shootray_bundle() bad ray\n");
-    }
 
     if (rtip->needprep)
        rt_prep(rtip);

Modified: brlcad/trunk/src/librt/shoot.c
===================================================================
--- brlcad/trunk/src/librt/shoot.c      2013-08-10 05:37:33 UTC (rev 56735)
+++ brlcad/trunk/src/librt/shoot.c      2013-08-10 05:43:01 UTC (rev 56736)
@@ -916,18 +916,6 @@
                   V3ARGS(ap->a_ray.r_dir));
        }
     }
-#ifndef NO_BADRAY_CHECKING
-    if (RT_BADVEC(ap->a_ray.r_pt)||RT_BADVEC(ap->a_ray.r_dir)) {
-       bu_log("\n**********shootray cpu=%d  %d, %d lvl=%d (%s)\n",
-              resp->re_cpu,
-              ap->a_x, ap->a_y,
-              ap->a_level,
-              ap->a_purpose != (char *)0 ? ap->a_purpose : "?");
-       VPRINT(" r_pt", ap->a_ray.r_pt);
-       VPRINT("r_dir", ap->a_ray.r_dir);
-       bu_bomb("rt_shootray() bad ray\n");
-    }
-#endif
 
     if (rtip->needprep)
        rt_prep_parallel(rtip, 1);      /* Stay on our CPU */
@@ -1613,18 +1601,6 @@
               ap->a_onehit);
        VPRINT("Dir", ap->a_ray.r_dir);
     }
-#ifndef NO_BADRAY_CHECKING
-    if (RT_BADVEC(ap->a_ray.r_pt)||RT_BADVEC(ap->a_ray.r_dir)) {
-       bu_log("\n**********cell_n_on_ray cpu=%d  %d, %d lvl=%d (%s)\n",
-              resp->re_cpu,
-              ap->a_x, ap->a_y,
-              ap->a_level,
-              ap->a_purpose != (char *)0 ? ap->a_purpose : "?");
-       VPRINT(" r_pt", ap->a_ray.r_pt);
-       VPRINT("r_dir", ap->a_ray.r_dir);
-       bu_bomb("rt_cell_n_on_ray() bad ray\n");
-    }
-#endif
 
     if (rtip->needprep)
        rt_prep_parallel(rtip, 1);      /* Stay on our CPU */

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


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to