0024624: Lost word in license statement in source files
[occt.git] / src / IntCurveSurface / IntCurveSurface_QuadricCurveExactInter.cdl
CommitLineData
b311480e 1-- Created on: 1993-08-18
2-- Created by: Laurent BUCHARD
3-- Copyright (c) 1993-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
17generic class QuadricCurveExactInter from IntCurveSurface (
18 TheSurface as any;
19 TheSurfaceTool as any;
20 TheCurve as any;
21 TheCurveTool as any)
22
23
24 ---Purpose: ---------------------------------------------------------
25 -- --
26 -- find a root (u,v,w) from a starting point (w0) of the problem :--
27 -- Q(X(w),Y(w),Z(w)) = 0 --
28 -- --
29 -- where Q(X,Y,Z) = 0 is the implicit expression of a quadric --
30 -- and (X(w),Y(w),Z(w)) the point of parameter w on a parametric --
31 -- curve. --
32 ----------------------------------------------------------------------
33
34
35uses
36 Quadric from IntSurf,
37 SequenceOfReal from TColStd
38
39------------------------------------------------------------
40class TheQuadCurvFunc instantiates QuadricCurveFunc from IntCurveSurface (
41 Quadric from IntSurf,
42 TheCurve,
43 TheCurveTool);
44
45 ---Purpose: Provides the signed distance function : Q(w)
46 -- and its first derivative dQ(w)/dw
47------------------------------------------------------------
48
49is
50
51 Create(S: TheSurface; C: TheCurve)
52 ---Purpose:
53 returns QuadricCurveExactInter from IntCurveSurface;
54
55
56 IsDone(me)
57 ---Purpose:
58 returns Boolean from Standard
59 is static;
60
61
62 NbRoots(me)
63 ---Purpose:
64 returns Integer from Standard
65 is static;
66
67
68 Root(me; Index: Integer from Standard)
69 ---Purpose:
70 returns Real from Standard
71 is static;
72
73
74 NbIntervals(me)
75 ---Purpose:
76 returns Integer from Standard
77 is static;
78
79
80 Intervals(me; Index: Integer from Standard;
81 U1,U2: out Real from Standard)
82 ---Purpose: U1 and U2 are the parameters of
83 -- a segment on the curve.
84 is static;
85
86
87
88fields
89
90 nbpnts : Integer from Standard;
91 pnts : SequenceOfReal from TColStd;
92 nbintv : Integer from Standard;
93 intv : SequenceOfReal from TColStd;
94
95end QuadricCurveExactInter;