Revision: 53747
          http://brlcad.svn.sourceforge.net/brlcad/?rev=53747&view=rev
Author:   brlcad
Date:     2012-11-19 16:34:18 +0000 (Mon, 19 Nov 2012)
Log Message:
-----------
remove a hard-coded 0.001 constant that has been in here since 1989 (mike, 
r3900).  the intent seems to be to discard partitions that are behind the ray 
start point implying the constant was attempting to capture near-zero or 
negative partitions.  this should be something below SMALL_FASTF but the 
'large' value implies it may be accommodating compound math model-space values 
so go with the more dynamic distance tolerance (0.0005) which makes this only 
slightly tighter than it was.  regression tested/passed on osx.

Revision Links:
--------------
    http://brlcad.svn.sourceforge.net/brlcad/?rev=3900&view=rev

Modified Paths:
--------------
    brlcad/trunk/src/librt/bool.c

Modified: brlcad/trunk/src/librt/bool.c
===================================================================
--- brlcad/trunk/src/librt/bool.c       2012-11-19 16:07:59 UTC (rev 53746)
+++ brlcad/trunk/src/librt/bool.c       2012-11-19 16:34:18 UTC (rev 53747)
@@ -1818,7 +1818,7 @@
         * Partition may start before current box starts, because it's
         * still waiting for all its solids to be shot.
         */
-       if (pp->pt_outhit->hit_dist <= 0.001 /* millimeters */) {
+       if (pp->pt_outhit->hit_dist < ap->a_rt_i->rti_tol.dist) {
            register struct partition *zap_pp;
            if (RT_G_DEBUG&DEBUG_PARTITION)
                bu_log("discarding partition %p behind ray start, out 
dist=%g\n",

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

Reply via email to