[MOAB-dev] r4848 - in MOAB/trunk/src: . moab

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed May 18 17:57:03 CDT 2011


Author: iulian
Date: 2011-05-18 17:57:02 -0500 (Wed, 18 May 2011)
New Revision: 4848

Modified:
   MOAB/trunk/src/FBEngine.cpp
   MOAB/trunk/src/moab/FBEngine.hpp
Log:
remove unused range (new_triangles)


Modified: MOAB/trunk/src/FBEngine.cpp
===================================================================
--- MOAB/trunk/src/FBEngine.cpp	2011-05-18 22:50:03 UTC (rev 4847)
+++ MOAB/trunk/src/FBEngine.cpp	2011-05-18 22:57:02 UTC (rev 4848)
@@ -1195,7 +1195,6 @@
   // then the sets will be reset, geometry recomputed. new vertices, new edges, etc.
 
   Range iniTris;
-  Range new_triangles;
   ErrorCode rval;
   rval = _mbImpl -> get_entities_by_type(face, MBTRI, iniTris);
   MBERRORR(rval, "can't get initial triangles");
@@ -1288,7 +1287,7 @@
       std::cout <<"tri: type: " << _mbImpl->type_from_handle(tri) << " id:" <<
           _mbImpl->id_from_handle(tri) << " e1:" << e1 << " e2:" << e2 << "\n";
     }
-    rval = BreakTriangle2( tri, e1, e2, nodesAlongPolyline[i], nodesAlongPolyline[i+1], new_triangles);
+    rval = BreakTriangle2( tri, e1, e2, nodesAlongPolyline[i], nodesAlongPolyline[i+1]);
     MBERRORR(rval, "can't break triangle 2");
     if (et2==MBEDGE)
       edgesToDelete.insert(e2);
@@ -1325,7 +1324,7 @@
   // we will separate triangles to delete, unaffected, new_triangles,
   //  nodesAlongPolyline, 
   Range first, second;
-  rval = separate (face, triToDelete, new_triangles, new_geo_edge,
+  rval = separate (face, triToDelete, new_geo_edge,
       first, second);
 
   // now, we are done with the computations;
@@ -1444,7 +1443,6 @@
 // to the left will be new face, to the right, old face
 // (to the left, positively oriented triangles)
 ErrorCode FBEngine::separate (EntityHandle face, Range & triToDelete,
-    Range & new_triangles,
     EntityHandle new_geo_edge, Range & first,  Range & second)
 {
   //Range unaffectedTriangles = subtract(iniTriangles, triToDelete);
@@ -1491,7 +1489,6 @@
 
   // get the first new triangle: will be part of first set;
   // flood fill first set, the rest will be in second set
-  //first.insert(new_triangles[0]);
   // the edges from new_geo_edge will not be crossed
 
   // get edges of face (adjacencies)
@@ -1738,14 +1735,14 @@
 // actual breaking of triangles
 // case 1: n2 interior to triangle
 ErrorCode FBEngine::BreakTriangle(EntityHandle tri, EntityHandle e1, EntityHandle e3,
-    EntityHandle n1, EntityHandle n2, EntityHandle n3, Range & new_triangles)


More information about the moab-dev mailing list