[MOAB-dev] r4051 - MOAB/trunk/src
sjackson at cae.wisc.edu
sjackson at cae.wisc.edu
Mon Jul 12 18:27:30 CDT 2010
Author: sjackson
Date: 2010-07-12 18:27:29 -0500 (Mon, 12 Jul 2010)
New Revision: 4051
Modified:
MOAB/trunk/src/OrientedBox.cpp
Log:
Fix bug in little-used OrientedBox function
Modified: MOAB/trunk/src/OrientedBox.cpp
===================================================================
--- MOAB/trunk/src/OrientedBox.cpp 2010-07-12 22:53:31 UTC (rev 4050)
+++ MOAB/trunk/src/OrientedBox.cpp 2010-07-12 23:27:29 UTC (rev 4051)
@@ -599,8 +599,13 @@
for (int i = 0; i < 8; ++i)
{
CartVect coords(center);
- for (int j = 0; j < 3; ++j)
+ for (int j = 0; j < 3; ++j){
+#if MB_ORIENTED_BOX_UNIT_VECTORS
+ coords += signs[i][j] * (axis[j]*length[j]);
+#else
coords += signs[i][j] * axis[j];
+#endif
+ }
EntityHandle handle;
rval = instance->create_vertex( coords.array(), handle );
if (MB_SUCCESS != rval) {
More information about the moab-dev
mailing list