Revision: 56925
http://sourceforge.net/p/brlcad/code/56925
Author: brlcad
Date: 2013-08-18 16:07:25 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
w1 is set but never used. eliminate w1, but probably implies the logic is wrong
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-08-18 11:54:18 UTC (rev
56924)
+++ brlcad/trunk/src/librt/primitives/hrt/hrt.c 2013-08-18 16:07:25 UTC (rev
56925)
@@ -161,7 +161,7 @@
fastf_t magsq_x, magsq_y, magsq_z;
vect_t Xu, Yu, Zu;
mat_t R;
- vect_t w1, P; /* used for bounding RPP */
+ vect_t P; /* used for bounding RPP */
fastf_t f;
hip = (struct rt_hrt_internal *)ip->idb_ptr;
@@ -184,30 +184,24 @@
VMOVE(&R[4], Yu);
VMOVE(&R[8], Zu);
- /* Computing bounding RPP */
- VSET(w1, magsq_x, magsq_y, magsq_z);
-
/* X */
VSET(P, 1.0, 0, 0); /* Bounding plane normal */
- VCROSS(w1, hip->xdir, P);
f = hip->xdir[X];
(*min)[X] = hip->v[X] - f;
(*max)[X] = hip->v[X] + f;
/* Y */
VSET(P, 0, 1.0, 0); /* Bounding plane normal */
- VCROSS(w1, hip->ydir, P);
f = hip->ydir[Y];
(*min)[Y] = hip->v[Y] - f;
(*max)[Y] = hip->v[Y] + f;
/* Y */
VSET(P, 0, 0, 1.0); /* Bounding plane normal */
- VCROSS(w1, hip->zdir, P);
f = hip->zdir[Z];
(*min)[Z] = hip->v[Z] - f;
(*max)[Z] = hip->v[Z] + f * 1.25;
-
+
return 0;
}
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