[MOAB-dev] r4208 - MOAB/trunk/itaps/igeom

iulian at mcs.anl.gov iulian at mcs.anl.gov
Fri Oct 8 16:49:29 CDT 2010


Author: iulian
Date: 2010-10-08 16:49:29 -0500 (Fri, 08 Oct 2010)
New Revision: 4208

Modified:
   MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp
   MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp
Log:
implement some extra methods needed 
 decide which one is the first vertex in the edge
 return the sense of the edge in face


Modified: MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp
===================================================================
--- MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp	2010-10-08 17:21:22 UTC (rev 4207)
+++ MOAB/trunk/itaps/igeom/SmoothFaceEval.cpp	2010-10-08 21:49:29 UTC (rev 4208)
@@ -49,7 +49,7 @@
    }
    return MB_FAILURE;// face not found in list
 }
-extern bool debug_surf_eval;
+bool debug_surf_eval1 = false;
 
 SmoothFaceEval::SmoothFaceEval(moab::Interface * mb,
       moab::EntityHandle surface_set, moab::GeomTopoTool * gTool) :
@@ -117,7 +117,7 @@
 /*
  void SmoothFaceEval::move_to_surface(double& x, double& y, double& z,
  double& u_guess, double& v_guess) {
- if (debug_surf_eval) {
+ if (debug_surf_eval1) {
  std::cout << "move_to_surface called." << std::endl;
  }
  }*/
@@ -273,7 +273,7 @@
    // reset the normal values after normalization
    _mb->tag_set_data(_gradientTag, _nodes, normalVal);
    // print the loops size and some other stuff
-   if (debug_surf_eval) {
+   if (debug_surf_eval1) {
       std::cout << " normals at  " << numNodes << " nodes" << std::endl;
       int i = 0;
       for (moab::Range::iterator it = _nodes.begin(); it != _nodes.end(); it++, i++) {
@@ -337,7 +337,7 @@
    rval = _mb->tag_set_data(_edgeCtrlTag, &edge, 1, &ctrl_pts[0]);
    assert(rval == MB_SUCCESS);
 
-   if (debug_surf_eval) {
+   if (debug_surf_eval1) {
       std::cout << "edge: " << _mb-> id_from_handle(edge) << " tangents: "
             << T[0] << T[1] << std::endl;
       std::cout << "  points: " << P[0] << " " << P[1] << std::endl;
@@ -1921,7 +1921,7 @@
    }
    if (startVert != currentVert)
       return MB_FAILURE;
-   if (debug_surf_eval) {
+   if (debug_surf_eval1) {
       // print the loops found so far
       std::cout << "number of loops" << _loopEnds.size() << std::endl;
       for (size_t i = 0; i < _loopEnds.size(); i++) {

Modified: MOAB/trunk/itaps/igeom/iGeom_MOAB.cpp


More information about the moab-dev mailing list