[MOAB-dev] r1425 - MOAB/trunk/tools/qvdual

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Nov 27 15:09:17 CST 2007


Author: tautges
Date: 2007-11-27 15:09:17 -0600 (Tue, 27 Nov 2007)
New Revision: 1425

Modified:
   MOAB/trunk/tools/qvdual/uiQVDual.ui.h
Log:
Write out only the hexes, not the aentities.


Modified: MOAB/trunk/tools/qvdual/uiQVDual.ui.h
===================================================================
--- MOAB/trunk/tools/qvdual/uiQVDual.ui.h	2007-11-27 19:13:54 UTC (rev 1424)
+++ MOAB/trunk/tools/qvdual/uiQVDual.ui.h	2007-11-27 21:09:17 UTC (rev 1425)
@@ -112,8 +112,18 @@
   computeDual = false;
 
   vtkMOABUtils::assign_global_ids();
+  
+    // make a set to specify what gets saved
+  MBEntityHandle save_set;
+  MBErrorCode result = vtkMOABUtils::mbImpl->create_meshset(MESHSET_SET, save_set);
+  if (MB_SUCCESS != result) return;
+  MBRange hexes;
+  result = vtkMOABUtils::mbImpl->get_entities_by_type(0, MBHEX, hexes);
+  if (MB_SUCCESS != result) return;
+  result = vtkMOABUtils::mbImpl->add_entities(save_set, hexes);
+  if (MB_SUCCESS != result) return;
 
-  vtkMOABUtils::mbImpl->write_mesh(filename.ascii());
+  vtkMOABUtils::mbImpl->write_file(filename.ascii(), NULL, NULL, &save_set, 1);
 
   redrawDisplay();
 }
@@ -681,13 +691,15 @@
 
 void uiQVDual::CropToolButton_clicked()
 {
+    /*
   if (NULL == cropToolPopup) {
     cropToolPopup = new CropToolPopup();
     cropToolPopup->vtk_widget(vtkWidget);
   }
 
   cropToolPopup->show();
-
+    */
+  DualTool(vtkMOABUtils::mbImpl).check_dual_adjs();
 }
 
 




More information about the moab-dev mailing list