[cgma-dev] r4740 - cgm/branches/merge-cubit12/geom/testing
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Thu Apr 14 12:14:46 CDT 2011
Author: janehu
Date: 2011-04-14 12:14:46 -0500 (Thu, 14 Apr 2011)
New Revision: 4740
Modified:
cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp
Log:
Changes made forsource code change in revision 4739.
Modified: cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp
===================================================================
--- cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp 2011-04-14 17:13:03 UTC (rev 4739)
+++ cgm/branches/merge-cubit12/geom/testing/CreateGeometry.cpp 2011-04-14 17:14:46 UTC (rev 4740)
@@ -48,17 +48,15 @@
printf("failed to make brick\n");
return 1;
}
- CubitBox comp_box(CubitVector(-4.035534, -0.5, 0.5),
- CubitVector(1.621320, 5.156854, 7.5));
+ CubitBox comp_box(CubitVector(-4.656854, -3.656854, -3.),
+ CubitVector(6.656854, 7.656854, 11.));
CubitBox bnd_box = brick->bounding_box();
bool identical = cubit_box_identical(bnd_box, comp_box, GEOMETRY_RESABS*2.0, true);
if (identical)
return 0;
- //because this box is given from OCC engine, acis engine should give smaller
- //box.
- if( bnd_box > comp_box || bnd_box < comp_box/1.09)
+ if( bnd_box < comp_box || bnd_box > comp_box*1.09)
{
printf("boxes not identical\n");
return 1;
More information about the cgma-dev
mailing list