1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D
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, or (at your option) any later version.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // Author : Anthony Geay (CEA/DEN)
21 #include "Interpolation3DSurf.hxx"
22 #include "InterpolationPlanar.txx"
24 namespace INTERP_KERNEL
26 Interpolation3DSurf::Interpolation3DSurf()
30 Interpolation3DSurf::Interpolation3DSurf(const InterpolationOptions& io):InterpolationPlanar<Interpolation3DSurf>(io)
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.
41 -# medianPlan: Position of the median plane where both cells will be projected
42 - Values: between 0 and 1.
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.
50 -# printLevel: Level of verboseness during the computations.
51 - Values: interger between 0 and 3.
54 void Interpolation3DSurf::setOptions(double precision, int printLevel, double medianPlan,
55 IntersectionType intersectionType, bool doRotat, int orientation)
57 InterpolationPlanar<Interpolation3DSurf>::setOptions(precision,printLevel,intersectionType, orientation);
58 InterpolationPlanar<Interpolation3DSurf>::setDoRotate(doRotat);
59 InterpolationPlanar<Interpolation3DSurf>::setMedianPlane(medianPlan);