0024859: Replace SortTools by STL equivalents
[occt.git] / src / Hermit / Hermit.cdl
CommitLineData
b311480e 1-- Created on: 1997-02-18
2-- Created by: Stagiaire Francois DUMONT
3-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17package Hermit
18
19 ---Purpose: This is used to reparameterize Rational BSpline
20 -- Curves so that we can concatenate them later to
21 -- build C1 Curves It builds and 1D-reparameterizing
22 -- function starting from an Hermite interpolation and
23 -- adding knots and modifying poles of the 1D BSpline
24 -- obtained that way. The goal is to build a(u) so that
25 -- if we consider a BSpline curve
26 -- N(u)
27 -- f(u) = -----
28 -- D(u)
29 --
30 -- the function a(u)D(u) has value 1 at the umin and umax
31 -- and has 0.0e0 derivative value a umin and umax.
32 -- The details of the computation occuring in this package
33 -- can be found by reading :
34 -- " Etude sur la concatenation de NURBS en vue du
35 -- balayage de surfaces" PFE n S85 Ensam Lille
36uses
37 Geom,
38 Geom2d,
39 TColStd,
40 TColgp
41
42is
43
44 Solution( BS : BSplineCurve from Geom;
45 TolPoles : in Real from Standard=0.000001;
46 TolKnots : in Real from Standard=0.000001)
47 ---Purpose:returns the correct spline a(u) which will
48 -- be multiplicated with BS later.
49 returns BSplineCurve from Geom2d;
50
51 Solution( BS : BSplineCurve from Geom2d;
52 TolPoles : in Real from Standard=0.000001;
53 TolKnots : in Real from Standard=0.000001)
54 ---Purpose:returns the correct spline a(u) which will
55 -- be multiplicated with BS later.
56 returns BSplineCurve from Geom2d;
57
58 Solutionbis( BS : BSplineCurve from Geom;
59 Knotmin : out Real from Standard;
60 Knotmax : out Real from Standard;
61 TolPoles : in Real from Standard=0.000001;
62 TolKnots : in Real from Standard=0.000001);
63 ---Purpose:returns the knots to insert to a(u) to
64 -- stay with a constant sign and in the
65 -- tolerances.
66
67end Hermit;
68
69