Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1351 - trunk/DynLT


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1351 - trunk/DynLT
  • Date: Thu, 19 Apr 2007 15:37:51 -0600 (MDT)

Author: bigler
Date: Thu Apr 19 15:37:51 2007
New Revision: 1351

Modified:
   trunk/DynLT/DynLTParticles.cc
Log:
Check for .nhdr as well as .nrrd file extensions.

Modified: trunk/DynLT/DynLTParticles.cc
==============================================================================
--- trunk/DynLT/DynLTParticles.cc       (original)
+++ trunk/DynLT/DynLTParticles.cc       Thu Apr 19 15:37:51 2007
@@ -22,8 +22,9 @@
   tstep(0)
 {
   // Check for a single timestep
-  string::size_type pos=filename.find(".nrrd", 0);
-  if (pos != string::npos) {
+  bool isNrrd = (filename.find(".nrrd", 0) != string::npos ||
+                 filename.find(".nhdr", 0) != string::npos);
+  if (isNrrd) {
     ParticleNRRD pnrrd(filename);
     add(new DynLTGridSpheres(queue, pnrrd.getParticleData(),
                              pnrrd.getNParticles(), pnrrd.getNVars(), ncells,




  • [MANTA] r1351 - trunk/DynLT, bigler, 04/19/2007

Archive powered by MHonArc 2.6.16.

Top of page