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

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon May 19 17:04:19 CDT 2008


Author: kraftche
Date: 2008-05-19 17:04:18 -0500 (Mon, 19 May 2008)
New Revision: 1826

Modified:
   MOAB/trunk/tools/dagmc/DagMC.cpp
Log:
Fix bug in DagMC::point_in_volume where when the following two 
conditions are met:
  1) input point is closest to the geometric curve joining two surfaces
     (or the geometric vertex joining 3 or more surfaces)
  2) the surfaces are used with different senses within the volume
the result may be incorrect.


Modified: MOAB/trunk/tools/dagmc/DagMC.cpp
===================================================================
--- MOAB/trunk/tools/dagmc/DagMC.cpp	2008-05-19 20:21:01 UTC (rev 1825)
+++ MOAB/trunk/tools/dagmc/DagMC.cpp	2008-05-19 22:04:18 UTC (rev 1826)
@@ -596,7 +596,7 @@
     rval = moab_instance()->get_coords( conn, len, coords[0].array() );
     if (MB_SUCCESS != rval) return rval;
     
-    rval = surface_sense( volume, surfs.front(), sense );
+    rval = surface_sense( volume, surfs[i], sense );
     if (MB_SUCCESS != rval) return rval;
 
       // get triangle normal




More information about the moab-dev mailing list