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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Fri Oct 5 10:58:11 CDT 2012


Author: janehu
Date: 2012-10-05 10:58:11 -0500 (Fri, 05 Oct 2012)
New Revision: 5768

Added:
   cgm/trunk/test/AngleCalc.cpp
   cgm/trunk/test/CreateGeometry.cpp
   cgm/trunk/test/GraphicsData.cpp
   cgm/trunk/test/TestUtilities.cpp
   cgm/trunk/test/TestUtilities.hpp
Modified:
   cgm/trunk/test/Makefile.am
Log:
Moves geom/testing checks to here,they are basically similiar check-ups for geometry. Corresponding CMakeLists.txt file is not moved here. Self study to see if I there's a way to auto-generate CMakeLists.txt from Makefile.am, passed make check in this directory.

Added: cgm/trunk/test/AngleCalc.cpp
===================================================================
--- cgm/trunk/test/AngleCalc.cpp	                        (rev 0)
+++ cgm/trunk/test/AngleCalc.cpp	2012-10-05 15:58:11 UTC (rev 5768)
@@ -0,0 +1,121 @@
+/**
+ * \file AngleCalc.cpp
+ *
+ * \brief AngleCalc, 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 "stdio.h"
+
+#include "GeometryQueryTool.hpp"
+#include "GeometryModifyTool.hpp"
+#include "RefEdge.hpp"
+#include "RefVertex.hpp"
+#include "CoEdge.hpp"
+#include "RefFace.hpp"
+#include "CubitDefines.h"
+#include "CubitBox.hpp"
+#include "InitCGMA.hpp"
+#include "TestUtilities.hpp"
+
+#ifndef SRCDIR
+# define SRCDIR .
+#endif
+
+#ifdef TEST_ACIS
+#  define ENGINE "ACIS"
+#elif defined (TEST_OCC)
+#  define ENGINE "OCC"
+#else
+#  error "Which engine to test?"
+#endif
+
+#define STRINGIFY_(X) #X
+#define STRINGIFY(X) STRINGIFY_(X)
+#define SRCPATH STRINGIFY(SRCDIR) "/"
+
+// forward declare some functions used and defined later
+int AngleCalc();
+
+// macro for printing a separator line
+#define PRINT_SEPARATOR   PRINT_INFO("=======================================\n");


More information about the cgma-dev mailing list