Revision: 53812
http://brlcad.svn.sourceforge.net/brlcad/?rev=53812&view=rev
Author: brlcad
Date: 2012-11-25 05:26:15 +0000 (Sun, 25 Nov 2012)
Log Message:
-----------
comment the peculiarity I had to research. ensures segment is valid, equiv to
>inf || <-inf
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/half/half.c
Modified: brlcad/trunk/src/librt/primitives/half/half.c
===================================================================
--- brlcad/trunk/src/librt/primitives/half/half.c 2012-11-24 17:19:25 UTC
(rev 53811)
+++ brlcad/trunk/src/librt/primitives/half/half.c 2012-11-25 05:26:15 UTC
(rev 53812)
@@ -160,11 +160,15 @@
if ((slant_factor = -VDOT(halfp->half_eqn, rp->r_dir)) < -1.0e-10) {
/* exit point, when dir.N < 0. out = min(out, s) */
out = norm_dist/slant_factor;
+
+ /* ensure a legal distance between +inf/-inf */
if (!NEAR_ZERO(out, INFINITY))
return 0; /* MISS */
} else if (slant_factor > 1.0e-10) {
/* entry point, when dir.N > 0. in = max(in, s) */
in = norm_dist/slant_factor;
+
+ /* ensure a legal distance between +inf/-inf */
if (!NEAR_ZERO(in, INFINITY))
return 0; /* MISS */
} else {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits