Revision: 57838
          http://sourceforge.net/p/brlcad/code/57838
Author:   iiizzzaaakkk
Date:     2013-09-23 18:07:28 +0000 (Mon, 23 Sep 2013)
Log Message:
-----------
Some corrections to rt_hrt_norm() function

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/hrt/hrt.c

Modified: brlcad/trunk/src/librt/primitives/hrt/hrt.c
===================================================================
--- brlcad/trunk/src/librt/primitives/hrt/hrt.c 2013-09-23 17:23:05 UTC (rev 
57837)
+++ brlcad/trunk/src/librt/primitives/hrt/hrt.c 2013-09-23 18:07:28 UTC (rev 
57838)
@@ -681,11 +681,8 @@
  * above equations by six here.
  */
 void
-rt_hrt_norm(register struct hit *hitp, struct soltab *stp, register struct 
xray *rp)
+rt_hrt_norm(register struct hit *hitp, register struct xray *rp)
 {
-    register struct hrt_specific *hrt =
-       (struct hrt_specific *)stp->st_specific;
-
     fastf_t w, fx, fy, fz;
     vect_t work;
 
@@ -698,7 +695,6 @@
     fz = (w * w - 0.5 * hitp->hit_vpriv[Z] * (hitp->hit_vpriv[X] * 
hitp->hit_vpriv[X] + 9/80 * hitp->hit_vpriv[Y] * hitp->hit_vpriv[Y])) * 
hitp->hit_vpriv[Z];
     VSET(work, fx, fy, fz);
 
-    MAT3X3VEC(hitp->hit_normal, hrt->hrt_invR, work);
 }
 
 

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to