r4731 - cgm/branches/merge-cubit12/geom/testing
Author: janehu Date: 2011-04-12 11:22:51 -0500 (Tue, 12 Apr 2011) New Revision: 4731 Modified: cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp Log: Modified the axes for generating rotated box. The original axes are not perpendicular to each other, ACIS and OCC use different two pairs of axesa(x,y) and (x,z) to create local coordiante system. Modified: cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp =================================================================== --- cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp 2011-04-11 19:36:06 UTC (rev 4730) +++ cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp 2011-04-12 16:22:51 UTC (rev 4731) @@ -36,9 +36,9 @@ { CubitVector center(1, 2, 4); CubitVector axes[3] = { - CubitVector(1, 0, .2), - CubitVector(0, 1, .4), - CubitVector(0.1, 0, 1) + CubitVector(0.707, 0.707, 0), + CubitVector(-0.707, 0.707, 0), + CubitVector(0, 0, 1) }; CubitVector extension(3, 5, 7); @@ -49,8 +49,8 @@ return 1; } if(!cubit_box_identical(brick->bounding_box(), - CubitBox(CubitVector(-3.577819, -5.210785, -4.768732), - CubitVector(5.577819, 9.210785, 12.768732)), + CubitBox(CubitVector(-4.035534, -0.5, 0.5), + CubitVector(1.621320, 5.156854, 7.5)), GEOMETRY_RESABS*2.0, true)) { printf("boxes not identical\n");
participants (1)
-
jiangtao_ma@yahoo.com