[MOAB-dev] r4893 - MOAB/trunk/tools/dagmc

sjackson at cae.wisc.edu sjackson at cae.wisc.edu
Tue May 31 09:47:56 CDT 2011


Author: sjackson
Date: 2011-05-31 09:47:56 -0500 (Tue, 31 May 2011)
New Revision: 4893

Added:
   MOAB/trunk/tools/dagmc/dagmc_preproc.hpp
   MOAB/trunk/tools/dagmc/obb_analysis.cpp
Modified:
   MOAB/trunk/tools/dagmc/DagMC.cpp
   MOAB/trunk/tools/dagmc/DagMC.hpp
   MOAB/trunk/tools/dagmc/Makefile.am
   MOAB/trunk/tools/dagmc/dagmc_preproc.cpp
Log:
Add OBB performance analysis and visualization features to dagmc_preproc

* Can create a visualization file to see geometric distribution of
  areas with poor OBB performance (i.e. many triangles per OBB leaf)
* Can print per-volume statistics on OBB leaf quality.

The new interfaces are described with `dagmc_preproc -h`

Also provide a small new feature to DagMC allowing it to use externally
loaded MOAB data, rather than restricting its use to DagMC::load_file()

Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2011-05-27 19:56:42 UTC (rev 4892)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2011-05-31 14:47:56 UTC (rev 4893)
@@ -227,12 +227,24 @@
   }
 #endif
 
+  return finish_loading();
 
+}
+
+ErrorCode DagMC::load_existing_contents( ){
+  
+  return finish_loading();
+}
+
+ErrorCode DagMC::finish_loading()
+{
+
+  ErrorCode rval;
   // search for a tag that has the faceting tolerance
   Range tagged_sets;
   double facet_tol_tagvalue = 0;
   bool other_set_tagged = false, root_tagged = false;
-
+  
   // get list of entity sets that are tagged with faceting tolerance 
   // (possibly empty set)
   rval = MBI->get_entities_by_type_and_tag( 0, MBENTITYSET, &facetingTolTag,
@@ -250,7 +262,7 @@
     if (MB_SUCCESS == rval) root_tagged = true;
     else rval = MB_SUCCESS;
   }
-
+  
   if ( (root_tagged || other_set_tagged) && facet_tol_tagvalue > 0) {
     facetingTolerance = facet_tol_tagvalue;
   }

Modified: MOAB/trunk/tools/dagmc/DagMC.hpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.hpp	2011-05-27 19:56:42 UTC (rev 4892)
+++ MOAB/trunk/tools/dagmc/DagMC.hpp	2011-05-31 14:47:56 UTC (rev 4893)
@@ -56,6 +56,18 @@
   ErrorCode load_file(const char* cfile,
 			const double facet_tolerance = 0);
 
+  /*\brief Use pre-loaded geometry set
+   *
+   * Works like load_file, but using data that has been externally 


More information about the moab-dev mailing list