[cgma-dev] r5872 - in cgm/trunk: . amendment geom util
janehu at mcs.anl.gov
janehu at mcs.anl.gov
Fri Nov 16 11:28:13 CST 2012
Author: janehu
Date: 2012-11-16 11:28:12 -0600 (Fri, 16 Nov 2012)
New Revision: 5872
Added:
cgm/trunk/amendment/
cgm/trunk/amendment/AutoMidsurfaceTool.cpp
cgm/trunk/amendment/AutoMidsurfaceTool.hpp
cgm/trunk/amendment/CAEntitySense.cpp
cgm/trunk/amendment/CAEntitySense.hpp
cgm/trunk/amendment/CAEntityTol.cpp
cgm/trunk/amendment/CAEntityTol.hpp
cgm/trunk/amendment/CGMHistory.cpp
cgm/trunk/amendment/CGMHistory.hpp
cgm/trunk/amendment/CubitCompat.cpp
cgm/trunk/amendment/CubitCompat.h
cgm/trunk/amendment/CubitCompat.h.in
cgm/trunk/amendment/CubitCompat.hpp
cgm/trunk/amendment/CubitFileSimModel.cpp
cgm/trunk/amendment/CubitFileSimModel.hpp
cgm/trunk/amendment/CubitUndo.cpp
cgm/trunk/amendment/CubitUndo.hpp
cgm/trunk/amendment/GfxPreview.cpp
cgm/trunk/amendment/GfxPreview.hpp
cgm/trunk/amendment/LocalToleranceTool.cpp
cgm/trunk/amendment/LocalToleranceTool.hpp
cgm/trunk/amendment/Makefile.am
Removed:
cgm/trunk/geom/AutoMidsurfaceTool.cpp
cgm/trunk/geom/AutoMidsurfaceTool.hpp
cgm/trunk/geom/CAEntitySense.cpp
cgm/trunk/geom/CAEntitySense.hpp
cgm/trunk/geom/CAEntityTol.cpp
cgm/trunk/geom/CAEntityTol.hpp
cgm/trunk/geom/CGMHistory.cpp
cgm/trunk/geom/CGMHistory.hpp
cgm/trunk/geom/CubitCompat.cpp
cgm/trunk/geom/CubitCompat.h.in
cgm/trunk/geom/CubitCompat.hpp
cgm/trunk/geom/GfxPreview.cpp
cgm/trunk/geom/GfxPreview.hpp
cgm/trunk/geom/LocalToleranceTool.cpp
cgm/trunk/geom/LocalToleranceTool.hpp
cgm/trunk/util/CubitFileSimModel.cpp
cgm/trunk/util/CubitFileSimModel.hpp
cgm/trunk/util/CubitUndo.cpp
cgm/trunk/util/CubitUndo.hpp
Log:
Rearrange the added files in geom and util directory to a new directory called amendment.
Added: cgm/trunk/amendment/AutoMidsurfaceTool.cpp
===================================================================
--- cgm/trunk/amendment/AutoMidsurfaceTool.cpp (rev 0)
+++ cgm/trunk/amendment/AutoMidsurfaceTool.cpp 2012-11-16 17:28:12 UTC (rev 5872)
@@ -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