1 // Copyright (C) 2007-2012 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.
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
20 #include "Interpolation2DCurve.hxx"
21 #include "InterpolationCurve.txx"
23 namespace INTERP_KERNEL
25 Interpolation2DCurve::Interpolation2DCurve()
27 // to have non-zero default thickness of target element
28 InterpolationOptions::setBoundingBoxAdjustmentAbs( InterpolationOptions::getPrecision() );
31 Interpolation2DCurve::Interpolation2DCurve
32 (const InterpolationOptions& io):InterpolationCurve<Interpolation2DCurve>(io)
34 // to have non-zero default thickness of target element
35 InterpolationOptions::setBoundingBoxAdjustmentAbs( InterpolationOptions::getPrecision() );
39 * \brief Function used to set the options for the intersection calculation
40 * \details The following options can be modified:
41 * -# Precision: Level of precision of the computations.
42 * - Values: positive real number.
44 * -# Tolerance: Thickness of target element.
45 * - Values: positive real number.
47 * -# Median line: Position of the median line where both segments will be projected.
48 * - Values: real number between 0.0 and 1.0.
51 void Interpolation2DCurve::setOptions (double precision,
55 InterpolationOptions::setPrecision(precision);
56 InterpolationOptions::setBoundingBoxAdjustmentAbs(tolerance);
57 InterpolationOptions::setMedianPlane(medianLine);