Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1068 - trunk/Model/Primitives


Chronological Thread 
  • From: knolla@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1068 - trunk/Model/Primitives
  • Date: Tue, 16 May 2006 22:48:18 -0600 (MDT)

Author: knolla
Date: Tue May 16 22:48:16 2006
New Revision: 1068

Modified:
   trunk/Model/Primitives/OctreeVolume.cc
Log:
fixed a std::string error in octree volume building

Modified: trunk/Model/Primitives/OctreeVolume.cc
==============================================================================
--- trunk/Model/Primitives/OctreeVolume.cc      (original)
+++ trunk/Model/Primitives/OctreeVolume.cc      Tue May 16 22:48:16 2006
@@ -21,7 +21,7 @@
        val = MIN(rmax, val);\
 \
 
-OctreeVolume::OctreeVolume(std::string filebase, 
+OctreeVolume::OctreeVolume(std::string filebase,
             int startTimestep, 
             int endTimestep,
             double variance_threshold, 
@@ -58,9 +58,8 @@
         num_timesteps = endTimestep - startTimestep + 1;
         steps = new Timestep[num_timesteps];
         
-        char buf[4000];
-        sprintf(buf, "%s.hdr", filebase);
-        ifstream in(buf);
+        std::string buf = filebase + ".hdr";
+        ifstream in(buf.c_str());
     
         cerr<< "Reading original data: " << buf << endl;
         int nx, ny, nz;




  • [MANTA] r1068 - trunk/Model/Primitives, knolla, 05/16/2006

Archive powered by MHonArc 2.6.16.

Top of page