[MOAB-dev] r3120 - MOAB/trunk/tools
bmsmith6 at wisc.edu
bmsmith6 at wisc.edu
Thu Aug 27 11:03:04 CDT 2009
Author: bmsmith
Date: 2009-08-27 11:03:04 -0500 (Thu, 27 Aug 2009)
New Revision: 3120
Modified:
MOAB/trunk/tools/measure.cpp
Log:
Fix ordering to calculate volume
Modified: MOAB/trunk/tools/measure.cpp
===================================================================
--- MOAB/trunk/tools/measure.cpp 2009-08-26 18:25:53 UTC (rev 3119)
+++ MOAB/trunk/tools/measure.cpp 2009-08-27 16:03:04 UTC (rev 3120)
@@ -185,8 +185,8 @@
tet_volume( coords[0], coords[2], coords[3], coords[4] ) ;
case MBPRISM:
return tet_volume( coords[0], coords[1], coords[2], coords[5] ) +
- tet_volume( coords[3], coords[4], coords[5], coords[0] ) +
- tet_volume( coords[0], coords[1], coords[4], coords[5] ) ;
+ tet_volume( coords[3], coords[5], coords[4], coords[0] ) +
+ tet_volume( coords[1], coords[4], coords[5], coords[0] ) ;
case MBHEX:
return tet_volume( coords[0], coords[1], coords[3], coords[4] ) +
tet_volume( coords[7], coords[3], coords[6], coords[4] ) +
More information about the moab-dev
mailing list