Revision: 57028
http://sourceforge.net/p/brlcad/code/57028
Author: iiizzzaaakkk
Date: 2013-08-21 13:58:56 +0000 (Wed, 21 Aug 2013)
Log Message:
-----------
Added comment explaining the importance of the new constant 1.25 in
rt_hrt_bbox()
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-21 13:37:49 UTC (rev
57027)
+++ brlcad/trunk/src/librt/primitives/hrt/hrt.c 2013-08-21 13:58:56 UTC (rev
57028)
@@ -195,6 +195,11 @@
/* Y */
f = hip->zdir[Z];
+ /**
+ * 1.0 stands for the length of zdir vector and 0.25 closely approximates
+ * some value which encloses the displacement from upper cusp to highest
+ * point of either lobe in the Z direction
+ */
(*min)[Z] = hip->v[Z] - f;
(*max)[Z] = hip->v[Z] + f * 1.25;
@@ -390,9 +395,19 @@
* >0 HIT
*/
int
-rt_hrt_shot()
+rt_hrt_shot(struct soltab *stp, register struct xray *rp, struct application
*ap, struct seg *seghead)
{
- bu_log("rt_hrt_shot: Not implemented yet!\n");
+ register struct hrt_specific *hrt =
+ (struct hrt_specific *)stp->st_specific;
+ register struct seg *segp;
+ vect_t dprime; /* D' */
+ vect_t pprime; /* P' */
+ vect_t work; /* temporary vector */
+ bn_poly_t S; /* The sextic equation (of power 6) */
+ bn_complex_t complex[6]; /* The complex roots */
+ double real[6]; /* The real roots */
+ register int i;
+ int j;
return 6;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits