Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2327 - trunk/scenes


Chronological Thread 
  • From:
  • To:
  • Subject: [Manta] r2327 - trunk/scenes
  • Date: Wed, 17 Sep 2008 16:46:33 -0600 (MDT)

Author: aek
Date: Wed Sep 17 16:46:32 2008
New Revision: 2327

Modified:
   trunk/scenes/cubeWorld.cc
Log:
One more try at fixing the cubeWorld scene.  Seems to fix platform 
portability.

Modified: trunk/scenes/cubeWorld.cc
==============================================================================
--- trunk/scenes/cubeWorld.cc   (original)
+++ trunk/scenes/cubeWorld.cc   Wed Sep 17 16:46:32 2008
@@ -68,10 +68,9 @@
     Group* group = new Group();
     Material *flat = new Lambertian( Color::white() * 0.8 );
     ifstream input( file_name.c_str() );
-    while( input.good() && !input.eof() )
+    Vector center, length, rotations;
+    while( input >> center >> length >> rotations )
     {
-        Vector center, length, rotations;
-        input >> center >> length >> rotations;
         length *= 0.5;
         if ( rotations != Vector( 0.0, 0.0, 0.0 ) )
         {


  • [Manta] r2327 - trunk/scenes, aek, 09/17/2008

Archive powered by MHonArc 2.6.16.

Top of page