Salome HOME
488ca2b857548f202efbcc517de5793919209b13
[tools/medcoupling.git] / src / INTERP_KERNEL / Interpolation3DSurf.cxx
1 // Copyright (C) 2007-2012  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
20 #include "Interpolation3DSurf.hxx"
21 #include "InterpolationPlanar.txx"
22
23 namespace INTERP_KERNEL
24 {
25   Interpolation3DSurf::Interpolation3DSurf()
26   {
27   }
28
29   Interpolation3DSurf::Interpolation3DSurf(const InterpolationOptions& io):InterpolationPlanar<Interpolation3DSurf>(io)
30   {
31   }
32
33   
34   /**
35      \brief  Function used to set the options for the intersection calculation
36      \details The following options can be modified:
37      -# intersectionType: the type of algorithm to be used in the computation of the cell-cell intersections.
38      - Values: Triangle, Convex.
39      - Default: Triangle.
40      -# medianPlan: Position of the median plane where both cells will be projected
41      - Values: between 0 and 1.
42      - Default: 0.5.
43      -# doRotat: rotate the coordinate system such that the target cell is in the Oxy plane.
44      - Values: true (necessarilly if Intersection_type=Triangle), false.
45      - Default: true (as default Intersection_type=Triangle)
46      -# precision: Level of precision of the computations is precision times the characteristic size of the mesh.
47      - Values: positive real number.
48      - Default: 1.0E-12.
49      -# printLevel: Level of verboseness during the computations.
50      - Values: interger between 0 and 3.
51      - Default: 0.
52   */
53   void Interpolation3DSurf::setOptions(double precision, int printLevel, double medianPlan, 
54                                        IntersectionType intersectionType, bool doRotat, int orientation)
55   {
56     InterpolationPlanar<Interpolation3DSurf>::setOptions(precision,printLevel,intersectionType, orientation);
57     InterpolationPlanar<Interpolation3DSurf>::setDoRotate(doRotat);
58     InterpolationPlanar<Interpolation3DSurf>::setMedianPlane(medianPlan);
59   }
60 }