[MOAB-dev] r4744 - in MOAB/trunk: src src/moab test
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Sun Apr 17 22:44:31 CDT 2011
Author: iulian
Date: 2011-04-17 22:44:28 -0500 (Sun, 17 Apr 2011)
New Revision: 4744
Modified:
MOAB/trunk/src/FBEngine.cpp
MOAB/trunk/src/GeomTopoTool.cpp
MOAB/trunk/src/SmoothFace.cpp
MOAB/trunk/src/SmoothFace.hpp
MOAB/trunk/src/moab/FBEngine.hpp
MOAB/trunk/src/moab/GeomTopoTool.hpp
MOAB/trunk/test/mbfacet_test.cpp
Log:
fourth iteration for splitting a surface
still to do: finish splitting along a line (cropping with a loop works)
Modified: MOAB/trunk/src/FBEngine.cpp
===================================================================
--- MOAB/trunk/src/FBEngine.cpp 2011-04-15 22:17:06 UTC (rev 4743)
+++ MOAB/trunk/src/FBEngine.cpp 2011-04-18 03:44:28 UTC (rev 4744)
@@ -10,6 +10,7 @@
#include <cstring>
#include <map>
#include <set>
+#include <queue>
#include "assert.h"
#include "SmoothCurve.hpp"
@@ -28,7 +29,7 @@
double tolerance = 0.01; // TODO: how is this used ????
double tolerance_segment = 0.000001; // for segments intersection, points collapse
const bool Debug_surf_eval = false;
-bool debug_splits = false;// false?
+bool debug_splits = true;// false?
// will compute intersection between a segment and slice of a plane
// output is the intersection point
@@ -190,6 +191,12 @@
}
FBEngine::~FBEngine()
{
+ clean();
+ _smooth = false;
+}
+
+void FBEngine::clean()
+{
if (_smooth) {
_faces.clear();
_edges.clear();
@@ -204,7 +211,7 @@
delete _smthFace[i];
delete[] _smthFace;
_smthFace = NULL;
- _smooth = false;
+ //_smooth = false;
}
for (int j = 0; j < 4; j++)
@@ -351,6 +358,57 @@
return MB_SUCCESS;
}
+// clean up the smooth tags data if created, so the files will be smaller
+// if saved
+// also, recompute the tags if topology is modified
+void FBEngine::delete_smooth_tags()
More information about the moab-dev
mailing list