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

jiangtao_ma at yahoo.com jiangtao_ma at yahoo.com
Tue Jan 31 12:31:45 CST 2012


Author: janehu
Date: 2012-01-31 12:31:42 -0600 (Tue, 31 Jan 2012)
New Revision: 5358

Added:
   cgm/trunk/test/offset_curves.cpp
Modified:
   cgm/trunk/test/Makefile.am
Log:
Added test for offset curve operation.

Modified: cgm/trunk/test/Makefile.am
===================================================================
--- cgm/trunk/test/Makefile.am	2012-01-31 18:28:16 UTC (rev 5357)
+++ cgm/trunk/test/Makefile.am	2012-01-31 18:31:42 UTC (rev 5358)
@@ -22,7 +22,7 @@
 endif
 endif
 if build_OCC
-  TESTS += attribute_to_file attribute_to_buffer modify subtract makept r_w test_occ operation brick_occ merge_occ point_project imprint_bug
+  TESTS += attribute_to_file attribute_to_buffer modify subtract makept offset_curves r_w test_occ operation brick_occ merge_occ point_project imprint_bug
 endif
 
 check_PROGRAMS = $(TESTS)
@@ -36,6 +36,7 @@
 point_project_CPPFLAGS = $(CPPFLAGS) $(AM_CPPFLAGS) '-DTEST_ENGINE="ACIS"'
 
 makept_SOURCES = makept.cpp
+offset_curves_SOURCES = offset_curves.cpp
 modify_SOURCES = modify.cpp
 imprint_bug_SOURCES = imprint_bug.cpp
 subtract_SOURCES = subtract.cpp
@@ -137,6 +138,7 @@
         fillet.occ \
         imprint.brep \
         BsplineCurve.occ \
+        curves.brep \
         bug.brep \
         subtract.occ \
         glue.occ \

Added: cgm/trunk/test/offset_curves.cpp
===================================================================
--- cgm/trunk/test/offset_curves.cpp	                        (rev 0)
+++ cgm/trunk/test/offset_curves.cpp	2012-01-31 18:31:42 UTC (rev 5358)
@@ -0,0 +1,279 @@
+/**
+ * \file makept.cpp
+ *
+ * \brief makept, another simple C++ driver for CGM
+ *
+ * This program acts as a simple driver for CGM.  It reads in a geometry,
+ * and performs varies checks for bodies, surfaces, curves and vertices.
+ */
+
+#undef NDEBUG
+#include <cassert>
+
+#include "GeometryModifyEngine.hpp"
+#include "GeometryModifyTool.hpp"
+#include "GeometryQueryTool.hpp"
+#include "CubitMessage.hpp"


More information about the cgma-dev mailing list