0024023: Revamp the OCCT Handle -- downcast (automatic)
[occt.git] / src / GeomFill / GeomFill_Darboux.cdl
CommitLineData
b311480e 1-- Created on: 1998-03-04
2-- Created by: Roman BORISOV
3-- Copyright (c) 1998-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
17class Darboux from GeomFill
18 inherits TrihedronLaw from GeomFill
19
20 ---Purpose: Defines Darboux case of Frenet Trihedron Law
21
22uses
23
24 HSurface from Adaptor3d,
25 Shape from GeomAbs,
26 Array1OfReal from TColStd,
27 Vec from gp,
28 HArray1OfReal from TColStd,
29 CurveOnSurface from Adaptor3d
30
31raises
32 OutOfRange, ConstructionError
33
34is
35 Create
36 returns Darboux from GeomFill
37 raises ConstructionError;
38
39 Copy(me)
40 returns TrihedronLaw from GeomFill
41 is redefined;
42
43--
44--
45--========== To compute Location and derivatives Location
46--
47 D0(me : mutable;
48 Param: Real;
49 Tangent : out Vec from gp;
50 Normal : out Vec from gp;
51 BiNormal : out Vec from gp)
52 ---Purpose: compute Triedrhon on curve at parameter <Param>
53 returns Boolean is redefined;
54
55 D1(me : mutable;
56 Param: Real;
57 Tangent : out Vec from gp;
58 DTangent : out Vec from gp;
59 Normal : out Vec from gp;
60 DNormal : out Vec from gp;
61 BiNormal : out Vec from gp;
62 DBiNormal : out Vec from gp)
63 ---Purpose: compute Triedrhon and derivative Trihedron on curve
64 -- at parameter <Param>
65 -- Warning : It used only for C1 or C2 aproximation
66 returns Boolean
67 is redefined;
68
69 D2(me : mutable;
70 Param: Real;
71 Tangent : out Vec from gp;
72 DTangent : out Vec from gp;
73 D2Tangent : out Vec from gp;
74 Normal : out Vec from gp;
75 DNormal : out Vec from gp;
76 D2Normal : out Vec from gp;
77 BiNormal : out Vec from gp;
78 DBiNormal : out Vec from gp;
79 D2BiNormal : out Vec from gp)
80 ---Purpose: compute Trihedron on curve
81 -- first and seconde derivatives.
82 -- Warning : It used only for C2 aproximation
83 returns Boolean
84 is redefined;
85--
86-- =================== Management of continuity ===================
87--
88 NbIntervals(me; S : Shape from GeomAbs)
89 ---Purpose: Returns the number of intervals for continuity
90 -- <S>.
91 -- May be one if Continuity(me) >= <S>
92 returns Integer is redefined;
93
94 Intervals(me; T : in out Array1OfReal from TColStd;
95 S : Shape from GeomAbs)
96 ---Purpose: Stores in <T> the parameters bounding the intervals
97 -- of continuity <S>.
98 --
99 -- The array must provide enough room to accomodate
100 -- for the parameters. i.e. T.Length() > NbIntervals()
101 raises
102 OutOfRange from Standard
103 is redefined;
104
105
106-- =================== To help computation of Tolerance ===============
107 GetAverageLaw(me : mutable;
108 ATangent : out Vec from gp;
109 ANormal : out Vec from gp;
110 ABiNormal : out Vec from gp)
111 ---Purpose: Get average value of Tangent(t) and Normal(t) it is usfull to
112 -- make fast approximation of rational surfaces.
113 is redefined;
114
115-- =================== To help Particular case ===============
116
117 IsConstant(me)
118 ---Purpose: Say if the law is Constant.
119 returns Boolean
120 is redefined;
121
122 IsOnlyBy3dCurve(me)
123 ---Purpose: Return False.
124 returns Boolean
125 is redefined;
126
127end Darboux;