Salome HOME
Merge from V6_main 01/04/2013
[modules/med.git] / src / INTERP_KERNEL / Interpolation3DSurf.cxx
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Author : Anthony Geay (CEA/DEN)
20
21 #include "Interpolation3DSurf.hxx"
22 #include "InterpolationPlanar.txx"
23
24 namespace INTERP_KERNEL
25 {
26   Interpolation3DSurf::Interpolation3DSurf()
27   {
28   }
29
30   Interpolation3DSurf::Interpolation3DSurf(const InterpolationOptions& io):InterpolationPlanar<Interpolation3DSurf>(io)
31   {
32   }
33
34   
35   /**
36      \brief  Function used to set the options for the intersection calculation
37      \details The following options can be modified:
38      -# intersectionType: the type of algorithm to be used in the computation of the cell-cell intersections.
39      - Values: Triangle, Convex.
40      - Default: Triangle.
41      -# medianPlan: Position of the median plane where both cells will be projected
42      - Values: between 0 and 1.
43      - Default: 0.5.
44      -# doRotat: rotate the coordinate system such that the target cell is in the Oxy plane.
45      - Values: true (necessarilly if Intersection_type=Triangle), false.
46      - Default: true (as default Intersection_type=Triangle)
47      -# precision: Level of precision of the computations is precision times the characteristic size of the mesh.
48      - Values: positive real number.
49      - Default: 1.0E-12.
50      -# printLevel: Level of verboseness during the computations.
51      - Values: interger between 0 and 3.
52      - Default: 0.
53   */
54   void Interpolation3DSurf::setOptions(double precision, int printLevel, double medianPlan, 
55                                        IntersectionType intersectionType, bool doRotat, int orientation)
56   {
57     InterpolationPlanar<Interpolation3DSurf>::setOptions(precision,printLevel,intersectionType, orientation);
58     InterpolationPlanar<Interpolation3DSurf>::setDoRotate(doRotat);
59     InterpolationPlanar<Interpolation3DSurf>::setMedianPlane(medianPlan);
60   }
61 }