[cgma-dev] r5200 - cgm/trunk/test
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Wed Oct 26 12:36:49 CDT 2011
Author: janehu
Date: 2011-10-26 12:36:49 -0500 (Wed, 26 Oct 2011)
New Revision: 5200
Modified:
cgm/trunk/test/modify.cpp
cgm/trunk/test/r_w.cpp
cgm/trunk/test/subtract.cpp
Log:
don't remove the tool_body for boolean operation even if keep_old is false, it's for from_body use.
Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp 2011-10-25 15:27:53 UTC (rev 5199)
+++ cgm/trunk/test/modify.cpp 2011-10-26 17:36:49 UTC (rev 5200)
@@ -796,7 +796,7 @@
assert(free_entities.size() == 0);
from_body = gmti->brick(4, 4, 4);
- CubitVector v_move9(2,5,2);
+ CubitVector v_move9(2,3,2);
gti->translate(from_body,v_move9);
ref_faces.clean_out();
from_body->ref_faces(ref_faces);
Modified: cgm/trunk/test/r_w.cpp
===================================================================
--- cgm/trunk/test/r_w.cpp 2011-10-25 15:27:53 UTC (rev 5199)
+++ cgm/trunk/test/r_w.cpp 2011-10-26 17:36:49 UTC (rev 5200)
@@ -287,7 +287,7 @@
rsl = gmti->subtract(tool_body,from_bodies, new_bodies,
CUBIT_TRUE, CUBIT_FALSE);
//Created volume(s): 24, 25
- //Destroyed volume(s): 22, 23
+ //Destroyed volume(s): 22
double d = new_bodies.step_and_get()->measure();
CubitVector v = new_bodies.get()->center_point();
int n = new_bodies.get()->num_ref_faces();
@@ -305,7 +305,7 @@
rsl = CubitCompat_export_solid_model(ref_entity_list, filename, filetype,
num_ents_exported, cubit_version);
- assert(num_ents_exported == 1);
+ assert(num_ents_exported == 2);
bodies.clean_out();
gti->bodies(bodies);
//delete all entities
Modified: cgm/trunk/test/subtract.cpp
===================================================================
--- cgm/trunk/test/subtract.cpp 2011-10-25 15:27:53 UTC (rev 5199)
+++ cgm/trunk/test/subtract.cpp 2011-10-26 17:36:49 UTC (rev 5200)
@@ -125,10 +125,15 @@
ref_entities.clean_out();
rsl = gti->export_solid_model(ref_entities, filename, filetype,
num_ents_exported, cubit_version);
- assert(num_ents_exported == 1);
+ assert(num_ents_exported == 2);
DLIList<Body*> bodies;
gti->bodies(bodies);
+ int id = bodies.get_and_step()->id();
More information about the cgma-dev
mailing list