Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r345 - in trunk: Readers/BART SCIRun/include


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r345 - in trunk: Readers/BART SCIRun/include
  • Date: Tue, 24 May 2005 16:58:34 -0600 (MDT)

Author: bigler
Date: Tue May 24 16:58:34 2005
New Revision: 345

Modified:
   trunk/Readers/BART/animation.c
   trunk/SCIRun/include/sci_values.h
Log:

Readers/BART/animation.c

        Use MAXFLOAT instead of FLT_MAX.  This now works on IRIX,
        Linux, and Cygwin.

SCIRun/include/sci_values.h

        Added comment on which value to use for MAXFLOAT.

Modified: trunk/Readers/BART/animation.c
==============================================================================
--- trunk/Readers/BART/animation.c      (original)
+++ trunk/Readers/BART/animation.c      Tue May 24 16:58:34 2005
@@ -160,7 +160,7 @@
    {
       int q;
       int visible=1;   /* it is visible by default from time=-infinity til 
the first key */
-      float prevtime=-FLT_MAX;
+      float prevtime=-MAXFLOAT;
       VisKey *keys=(VisKey*)animation->visibilities;
       for(q=0;q<animation->numVisibilities;q++)
       {

Modified: trunk/SCIRun/include/sci_values.h
==============================================================================
--- trunk/SCIRun/include/sci_values.h   (original)
+++ trunk/SCIRun/include/sci_values.h   Tue May 24 16:58:34 2005
@@ -33,6 +33,9 @@
  *
  *    This file encapsulates differences between different platforms
  *  with respect to the values.h file.
+ *
+ *  You should use MAXFLOAT over FLT_MAX.
+ *
  */
 
 #if !defined(SCI_VALUES_H)




  • [MANTA] r345 - in trunk: Readers/BART SCIRun/include, bigler, 05/24/2005

Archive powered by MHonArc 2.6.16.

Top of page