]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorvbd <vbd>
Wed, 24 Oct 2007 07:28:14 +0000 (07:28 +0000)
committervbd <vbd>
Wed, 24 Oct 2007 07:28:14 +0000 (07:28 +0000)
src/INTERP_KERNEL/BBTree.H
src/INTERP_KERNEL/Test/Makefile.in
src/INTERP_KERNEL/TransformedTriangle.hxx

index 892353ef067f563565877f71b22b90e18863dbaf..4354abec880b3d5ab49fec335f7fa66bfdab89a1 100644 (file)
@@ -75,25 +75,38 @@ BBTree(double* bbs, int* elems, int level, int nbelems):
          if (min<min_right) min_right = min;
        }
       else
+
        {
          new_elems_left.push_back(elem);
          if (max>max_left) max_left = max;
        }
 
+
     }
   _max_left=max_left;
   _min_right=min_right;
   _left=new BBTree(bbs, &(new_elems_left[0]), level+1, new_elems_left.size());
   _right=new BBTree(bbs, &(new_elems_right[0]), level+1, new_elems_right.size());
   
+
 }
 
+
 ~BBTree()
 {
   if (_left!=0)  delete _left;
   if (_right!=0) delete _right;
+
 }
 
+  
+  /*! returns in \a elems the list of elements potentially intersecting the bounding box pointed to by \a bb
+    
+  \param bb pointer to query bounding box
+  \param elems list of elements (given in 0-indexing) intersecting the bounding box
+  */
+
 void getIntersectingElems(const double* bb, vector<int>& elems) const
 {
   //  terminal node : return list of elements intersecting bb
@@ -135,6 +148,8 @@ void getIntersectingElems(const double* bb, vector<int>& elems) const
   _right->getIntersectingElems(bb,elems);
 }
 
+
+
 int size()
 {
   if (_terminal) return _nbelems;
index 9e77c87f2b6edcbd9da7f7387ca18e36b966949d..e3b27d019870163296f5a14051d1c2b7de6e541f 100644 (file)
@@ -71,8 +71,9 @@ CXXFLAGS+=@CXXTMPDPTHFLAGS@ $(MED2_INCLUDES) $(HDF5_INCLUDES) -I$(top_srcdir)/sr
 CPPFLAGS+=$(BOOST_CPPFLAGS) $(MED2_INCLUDES) $(HDF5_INCLUDES) -I$(top_srcdir)/src/INTERP_KERNEL
 
 #include CppUnit
-CXXFLAGS+= ${CPPUNIT_INCLUDES}
-CPPFLAGS+= ${CPPUNIT_INCLUDES}
+
+CXXFLAGS+= $(CPPUNIT_INCLUDES)
+CPPFLAGS+=  $(CPPUNIT_INCLUDES)
 
 # for log
 CXXFLAGS+= -DLOG_LEVEL=3 -DOPTIMIZE -O2 -Wall
index bcd62da80445c03fc4ddc884341ae43014a60a1c..178184d199f9f7ce168d50d231291ff4c80b360c 100644 (file)
@@ -85,11 +85,12 @@ namespace INTERP_UTILS
   class TransformedTriangle
   {
 
+  
+
   public:
 
     friend class INTERP_TEST::TransformedTriangleTest;
     friend class INTERP_TEST::TransformedTriangleIntersectTest;
-
     /*
      * Enumerations representing the different geometric elements of the unit tetrahedron
      * and the triangle. The end element, NO_* gives the number of elements in the enumeration