[cgma-dev] r4031 - cgm/trunk/test

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Jul 1 14:51:42 CDT 2010


Author: kraftche
Date: 2010-07-01 14:51:42 -0500 (Thu, 01 Jul 2010)
New Revision: 4031

Added:
   cgm/trunk/test/merge_test.cpp
Modified:
   cgm/trunk/test/Makefile.am
Log:
add simple test of save/restore of merged geometry

Modified: cgm/trunk/test/Makefile.am
===================================================================
--- cgm/trunk/test/Makefile.am	2010-07-01 00:04:48 UTC (rev 4030)
+++ cgm/trunk/test/Makefile.am	2010-07-01 19:51:42 UTC (rev 4031)
@@ -14,16 +14,16 @@
 
 TESTS = init sheet
 if build_ACIS
-  TESTS += webcut hollow_acis brick_acis
+  TESTS += webcut hollow_acis brick_acis merge_acis
 else
 if WITH_CUBIT
-  TESTS += webcut brick_acis
+  TESTS += webcut brick_acis merge_acis
 else
-  TESTS += brick_facet
+  TESTS += brick_facet merge_facet
 endif
 endif
 if build_OCC
-  TESTS += modify makept r_w test_occ operation brick_occ
+  TESTS += modify makept r_w test_occ operation brick_occ #merge_occ
 endif
 
 AM_CPPFLAGS =
@@ -52,6 +52,14 @@
 brick_facet_SOURCES = $(brick_sources)
 brick_facet_CPPFLAGS = $(CPPFLAGS) '-DTEST_ENGINE="FACET"'
 
+merge_sources = merge_test.cpp
+merge_acis_SOURCES = $(merge_sources)
+merge_acis_CPPFLAGS = $(CPPFLAGS) -DTEST_ACIS
+merge_occ_SOURCES = $(merge_sources)
+merge_occ_CPPFLAGS = $(CPPFLAGS) -DTEST_OCC
+merge_facet_SOURCES = $(merge_sources)
+merge_facet_CPPFLAGS = $(CPPFLAGS) -DTEST_FACET
+
 # Files that are used as input to tests, and therefore
 # must be included in tarball for tests to run.
 EXTRA_DIST = 62_shaver1.brep \

Added: cgm/trunk/test/merge_test.cpp
===================================================================
--- cgm/trunk/test/merge_test.cpp	                        (rev 0)
+++ cgm/trunk/test/merge_test.cpp	2010-07-01 19:51:42 UTC (rev 4031)
@@ -0,0 +1,107 @@
+#include "MergeTool.hpp"
+#include "InitCGMA.hpp"
+#include "GeometryModifyTool.hpp"
+#include "GeometryQueryTool.hpp"
+#include "Body.hpp"


More information about the cgma-dev mailing list