[MOAB-dev] r4718 - MOAB/trunk/src

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Apr 6 11:46:02 CDT 2011


Author: iulian
Date: 2011-04-06 11:46:02 -0500 (Wed, 06 Apr 2011)
New Revision: 4718

Modified:
   MOAB/trunk/src/SmoothFace.cpp
   MOAB/trunk/src/SmoothFace.hpp
Log:
small clean up, remove (leftover) loops code.



Modified: MOAB/trunk/src/SmoothFace.cpp
===================================================================
--- MOAB/trunk/src/SmoothFace.cpp	2011-04-06 16:34:36 UTC (rev 4717)
+++ MOAB/trunk/src/SmoothFace.cpp	2011-04-06 16:46:02 UTC (rev 4718)
@@ -40,19 +40,6 @@
   return nbInSet;
 }
 
-ErrorCode getFaceSenseFromList(EntityHandle face,
-    std::vector<EntityHandle> & faces, std::vector<int> & senses, int & sense)
-{
-  for (size_t i = 0; i < faces.size(); i++)
-  {
-    if (face == faces[i])
-    {
-      sense = senses[i];
-      return MB_SUCCESS;
-    }
-  }
-  return MB_FAILURE;// face not found in list
-}
 bool debug_surf_eval1 = false;
 
 SmoothFace::SmoothFace(Interface * mb, EntityHandle surface_set,
@@ -1919,182 +1906,6 @@
   return rval;
 }
 
-// this will create the loops of geo set edges, based on connectivity
-// one external loop and possibly internal loops
-ErrorCode SmoothFace::find_loops()
-{
-  // this is purely a mesh/topology operation, probably should be part of GeomTopoTool()
-  // the logic is to get all the sets of geo tag 1, children of the face set, and arrange them in loops
-  /* std::vector<EntityHandle> _loops; // set1, set 3, set 5, ...
-   std::vector<char> senses; // 0 forward, 1 backward: 0, 0, 1, ...
-   std::vector<int> _loopEnds;// the first loop starts at 0 always;
-   */
-  // first, get all the sets of dimension 1 from the _mb
-  Tag geom_tag;
-  ErrorCode rval = _mb->tag_get_handle(GEOM_DIMENSION_TAG_NAME, geom_tag);
-
-  if (MB_SUCCESS != rval)
-    return rval;
-  // dimension 1 are curves
-  Range csets;
-  /*int dim=1;
-   void *dim_ptr = &dim;
-   csets.clear();
-
-   rval = _mb->get_entities_by_type_and_tag(_set, MBENTITYSET,


More information about the moab-dev mailing list