]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
MEDMEM Industrialization 2008
authoreap <eap@opencascade.com>
Wed, 17 Dec 2008 13:38:06 +0000 (13:38 +0000)
committereap <eap@opencascade.com>
Wed, 17 Dec 2008 13:38:06 +0000 (13:38 +0000)
 fix indentation

src/INTERP_KERNEL/Interpolation3D.txx
src/INTERP_KERNEL/InterpolationPlanar.txx

index 1d124cf897acd7259178bbfc0bcdf7904b88b32b..6da782c58f02c3b81a81877fb9d783ed1004dd53 100644 (file)
@@ -1,3 +1,21 @@
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 #ifndef __INTERPOLATION3D_TXX__
 #define __INTERPOLATION3D_TXX__
 
@@ -165,7 +183,7 @@ namespace INTERP_KERNEL
 
               case 8:
 
-                                                               intersector = new IntersectorHexa<MyMeshType>(srcMesh, targetMesh, targetIdx,getSplittingPolicy());
+                intersector = new IntersectorHexa<MyMeshType>(srcMesh, targetMesh, targetIdx,getSplittingPolicy());
                 break;
               
               default:
index bae20b1d4518b6e2bbc6a9120d24f2b343a3bec9..08bd1fdf2a30d8a45d8fc27f628f490e9afd29b7 100644 (file)
@@ -1,3 +1,21 @@
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 #ifndef __INTERPOLATIONPLANAR_TXX__
 #define __INTERPOLATIONPLANAR_TXX__
 
@@ -114,49 +132,49 @@ namespace INTERP_KERNEL
     
     _dimCaracteristic=std::min(DimCaracteristic_S, DimCaracteristic_P);
     if (InterpolationOptions::getPrintLevel()>=1)
-      {
-        std::cout << "  - Characteristic size of the source mesh : " << DimCaracteristic_S << std::endl;
-        std::cout << "  - Characteristic size of the target mesh: " << DimCaracteristic_P << std::endl;
-        std::cout << "InterpolationPlanar::computation of the intersections" << std::endl;
-      }
-    
+    {
+      std::cout << "  - Characteristic size of the source mesh : " << DimCaracteristic_S << std::endl;
+      std::cout << "  - Characteristic size of the target mesh: " << DimCaracteristic_P << std::endl;
+      std::cout << "InterpolationPlanar::computation of the intersections" << std::endl;
+    }
+
     PlanarIntersector<MyMeshType>* intersector;
-    
+
     switch (InterpolationOptions::getIntersectionType())
-      {
-      case Triangulation:
-        intersector=new TriangulationIntersector<MyMeshType>(
-                                                                       myMesh_P,
-                                                                       myMesh_S,
-                                                                       _dimCaracteristic,
-                                                                       InterpolationOptions::getPrecision(),
-                                                                       InterpolationOptions::getMedianPlane(),
-                                                                       InterpolationOptions::getPrintLevel());
-        break;
-      case Convex:
-        intersector=new ConvexIntersector<MyMeshType>(
-                                               myMesh_P,
-                                                                       myMesh_S,
-                                                                       _dimCaracteristic,
-                                                                       InterpolationOptions::getPrecision(),
-                                                                       InterpolationOptions::getDoRotate(),
-                                                                       InterpolationOptions::getMedianPlane(),
-                                                                       InterpolationOptions::getPrintLevel());
-        break;
-      case Geometric2D:
-        intersector=new Geometric2DIntersector<MyMeshType>(myMesh_P, myMesh_S, _dimCaracteristic, InterpolationOptions::getPrecision());
-        break;
-        // case MEDMEM::Generic:
-        //intersector=new GenericIntersector<SPACEDIM>(myMesh_P,myMesh_S, _DimCaracteristic,_Precision,
-        //                                         0, 0, _PrintLevel);
-        //break;
-      }
+    {
+    case Triangulation:
+      intersector=new TriangulationIntersector<MyMeshType>(
+                                                           myMesh_P,
+                                                           myMesh_S,
+                                                           _dimCaracteristic,
+                                                           InterpolationOptions::getPrecision(),
+                                                           InterpolationOptions::getMedianPlane(),
+                                                           InterpolationOptions::getPrintLevel());
+      break;
+    case Convex:
+      intersector=new ConvexIntersector<MyMeshType>(
+                                                    myMesh_P,
+                                                    myMesh_S,
+                                                    _dimCaracteristic,
+                                                    InterpolationOptions::getPrecision(),
+                                                    InterpolationOptions::getDoRotate(),
+                                                    InterpolationOptions::getMedianPlane(),
+                                                    InterpolationOptions::getPrintLevel());
+      break;
+    case Geometric2D:
+      intersector=new Geometric2DIntersector<MyMeshType>(myMesh_P, myMesh_S, _dimCaracteristic, InterpolationOptions::getPrecision());
+      break;
+      // case MEDMEM::Generic:
+      //intersector=new GenericIntersector<SPACEDIM>(myMesh_P,myMesh_S, _DimCaracteristic,_Precision,
+      //                                         0, 0, _PrintLevel);
+      //break;
+    }
 
     /****************************************************************/
     /* Create a search tree based on the bounding boxes             */
     /* Instanciate the intersector and initialise the result vector */
     /****************************************************************/
+
     long start_filtering=clock();
  
     std::vector<double> bbox;