[cgma-dev] r5935 - in cgm/branches/merge-cubit14.0: . amendment cgm_apps cgm_apps/TSTT cgm_apps/ccapi cgm_apps/examples

janehu at mcs.anl.gov janehu at mcs.anl.gov
Wed Jan 16 13:52:40 CST 2013


Author: janehu
Date: 2013-01-16 13:52:39 -0600 (Wed, 16 Jan 2013)
New Revision: 5935

Added:
   cgm/branches/merge-cubit14.0/amendment/
   cgm/branches/merge-cubit14.0/amendment/AutoMidsurfaceTool.cpp
   cgm/branches/merge-cubit14.0/amendment/AutoMidsurfaceTool.hpp
   cgm/branches/merge-cubit14.0/amendment/CAEntitySense.cpp
   cgm/branches/merge-cubit14.0/amendment/CAEntitySense.hpp
   cgm/branches/merge-cubit14.0/amendment/CAEntityTol.cpp
   cgm/branches/merge-cubit14.0/amendment/CAEntityTol.hpp
   cgm/branches/merge-cubit14.0/amendment/CGMHistory.cpp
   cgm/branches/merge-cubit14.0/amendment/CGMHistory.hpp
   cgm/branches/merge-cubit14.0/amendment/CubitCompat.cpp
   cgm/branches/merge-cubit14.0/amendment/CubitCompat.h
   cgm/branches/merge-cubit14.0/amendment/CubitCompat.h.in
   cgm/branches/merge-cubit14.0/amendment/CubitCompat.hpp
   cgm/branches/merge-cubit14.0/amendment/CubitFileSimModel.cpp
   cgm/branches/merge-cubit14.0/amendment/CubitFileSimModel.hpp
   cgm/branches/merge-cubit14.0/amendment/CubitUndo.cpp
   cgm/branches/merge-cubit14.0/amendment/CubitUndo.hpp
   cgm/branches/merge-cubit14.0/amendment/GfxPreview.cpp
   cgm/branches/merge-cubit14.0/amendment/GfxPreview.hpp
   cgm/branches/merge-cubit14.0/amendment/LocalToleranceTool.cpp
   cgm/branches/merge-cubit14.0/amendment/LocalToleranceTool.hpp
   cgm/branches/merge-cubit14.0/amendment/Makefile.am
   cgm/branches/merge-cubit14.0/cgm_apps/
   cgm/branches/merge-cubit14.0/cgm_apps/TSTT/
   cgm/branches/merge-cubit14.0/cgm_apps/TSTT/server/
   cgm/branches/merge-cubit14.0/cgm_apps/ccapi/
   cgm/branches/merge-cubit14.0/cgm_apps/ccapi/geom/
   cgm/branches/merge-cubit14.0/cgm_apps/ccapi/list/
   cgm/branches/merge-cubit14.0/cgm_apps/ccapi/util/
   cgm/branches/merge-cubit14.0/cgm_apps/cgm_cubit_acis/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/driverc++/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/driverc/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/exoIIfacet/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/facetdriver/
   cgm/branches/merge-cubit14.0/cgm_apps/examples/gomadrive/
Log:
Adding two directory today for merged cgm with cubit14.0.

Added: cgm/branches/merge-cubit14.0/amendment/AutoMidsurfaceTool.cpp
===================================================================
--- cgm/branches/merge-cubit14.0/amendment/AutoMidsurfaceTool.cpp	                        (rev 0)
+++ cgm/branches/merge-cubit14.0/amendment/AutoMidsurfaceTool.cpp	2013-01-16 19:52:39 UTC (rev 5935)
@@ -0,0 +1,908 @@
+//-------------------------------------------------------------------------
+// Filename      : AutoMidsurfaceTool.cpp
+//
+// Purpose       : 
+//   Create a midsurface of a body/volume given a thickness range. If no thickness range is given
+//   then make a educated guess at the thickness (using something like Volume/Surface Area).
+//   
+//   Create Midsurface Volume <id_list> auto [<min_thickness> <max_thickness>]
+//
+// Creator       : Sam Showman
+//
+// Creation Date : 05/10/2008
+//-------------------------------------------------------------------------
+#include "AutoMidsurfaceTool.hpp"
+#include "GeometryModifyEngine.hpp"
+#include "GeometryQueryTool.hpp"
+#include "BodySM.hpp"
+#include "Body.hpp"
+#include "GeometryModifyTool.hpp"
+#include "RefFace.hpp"
+#include "Surface.hpp"
+#include "Curve.hpp"
+#include "RefEntity.hpp"
+#include "SurfaceOverlapTool.hpp"
+#include "CubitPlane.hpp"
+#include "GfxPreview.hpp"
+#include "GfxDebug.hpp"
+#include "RefVertex.hpp"
+#include "ProgressTool.hpp"
+#include "AppUtil.hpp"
+#include "BoundingBoxTool.hpp"
+#include "GeomMeasureTool.hpp"
+
+// Constructor - nothing going on here
+AutoMidsurfaceTool::AutoMidsurfaceTool()
+{
+}
+
+// The main midsurface function
+// lower_tol, upper_tol and preview are optional
+CubitStatus AutoMidsurfaceTool::midsurface(
+	DLIList<Body*> &body_list_in,
+	DLIList<BodySM*> &body_list_out,
+    DLIList<Body*> &old_bodies_midsurfaced,
+    DLIList<double> &thickness_out,
+	double lower_limit,


More information about the cgma-dev mailing list