[MOAB-dev] r1548 - MOAB/trunk

pebay at mcs.anl.gov pebay at mcs.anl.gov
Mon Jan 21 16:32:13 CST 2008


Author: pebay
Date: 2008-01-21 16:32:13 -0600 (Mon, 21 Jan 2008)
New Revision: 1548

Modified:
   MOAB/trunk/test_mesh_refiner.cpp
Log:
ENH: print out more vertex information.


Modified: MOAB/trunk/test_mesh_refiner.cpp
===================================================================
--- MOAB/trunk/test_mesh_refiner.cpp	2008-01-20 09:04:29 UTC (rev 1547)
+++ MOAB/trunk/test_mesh_refiner.cpp	2008-01-21 22:32:13 UTC (rev 1548)
@@ -7,7 +7,7 @@
 
 class MBTestOutputFunctor : public MBEntityRefinerOutputFunctor
 {
-  virtual void operator () ( const double* vcoords, const void* vtags )
+  virtual void operator () ( const double* vcoords, const void* vtags, MBEntityHandle* vhash )
     {
     std::cout << "[ " << vcoords[0];
     for ( int i = 1; i < 6; ++i )
@@ -20,7 +20,13 @@
               << ", " << x[1];
     for ( int i = 0; i < 4; ++i )
       std::cout << ", " << m[i];
-    std::cout << " >\n";
+    std::cout << " > { ";
+    while ( *vhash )
+      {
+      std::cout << *vhash << " ";
+      ++ vhash;
+      }
+    std::cout << "}\n";
     }
 
   virtual void operator () ( MBEntityType etyp )




More information about the moab-dev mailing list