Revision: 53790
http://brlcad.svn.sourceforge.net/brlcad/?rev=53790&view=rev
Author: brlcad
Date: 2012-11-21 04:42:06 +0000 (Wed, 21 Nov 2012)
Log Message:
-----------
move the INFINITY define from raytrace.h over to bu.h with the other
fastf_t/numeric limits. not specific to librt and vmath uses the symbol.
Modified Paths:
--------------
brlcad/trunk/include/bu.h
brlcad/trunk/include/raytrace.h
Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h 2012-11-21 00:44:27 UTC (rev 53789)
+++ brlcad/trunk/include/bu.h 2012-11-21 04:42:06 UTC (rev 53790)
@@ -1231,7 +1231,23 @@
/** DEPRECATED, do not use */
#define SMALL SQRT_SMALL_FASTF
+/**
+ * It is necessary to have a representation of 1.0/0.0, or "infinity"
+ * that fits within the dynamic range of the machine being used. This
+ * constant places an upper bound on the size object which can be
+ * represented in the model.
+ */
+#ifdef INFINITY
+# undef INFINITY
+#endif
+#if defined(vax)
+# define INFINITY (1.0e20) /* VAX limit is 10**37 */
+#else
+# define INFINITY (1.0e40) /* IBM limit is 10**75 */
+#endif
+
+
/*----------------------------------------------------------------------*/
/** @addtogroup bitv */
/** @ingroup container */
Modified: brlcad/trunk/include/raytrace.h
===================================================================
--- brlcad/trunk/include/raytrace.h 2012-11-21 00:44:27 UTC (rev 53789)
+++ brlcad/trunk/include/raytrace.h 2012-11-21 04:42:06 UTC (rev 53790)
@@ -127,24 +127,12 @@
\4INSTANCE\3SHOOT\2ALLHITS\1ALLRAYS"
/**
- * It is necessary to have a representation of 1.0/0.0, or "infinity"
- * that fits within the dynamic range of the machine being used. This
- * constant places an upper bound on the size object which can be
- * represented in the model.
+ * FIXME: These should probably be vmath macros
*/
-#ifdef INFINITY
-# undef INFINITY
-#endif
-
-#if defined(vax)
-# define INFINITY (1.0e20) /* VAX limit is 10**37 */
-#else
-# define INFINITY (1.0e40) /* IBM limit is 10**75 */
-#endif
-
#define RT_BADNUM(n) (!((n) >= -INFINITY && (n) <= INFINITY))
#define RT_BADVEC(v) (RT_BADNUM((v)[X]) || RT_BADNUM((v)[Y]) ||
RT_BADNUM((v)[Z]))
+
/*
* Unfortunately, to prevent divide-by-zero, some tolerancing needs to
* be introduced.
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