0025592: Bad result of Fillet operation
[occt.git] / src / ChFiDS / ChFiDS_ElSpine.cdl
CommitLineData
b311480e 1-- Created on: 1995-05-04
2-- Created by: Laurent BOURESCHE
3-- Copyright (c) 1995-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 ElSpine from ChFiDS inherits Curve from Adaptor3d
18
19 ---Purpose: Elementary Spine for cheminements and approximations.
20
21uses
22 Pnt from gp,
23 Vec from gp,
24 Lin from gp,
25 Circ from gp,
26 Elips from gp,
27 Hypr from gp,
28 Parab from gp,
29 BezierCurve from Geom,
30 BSplineCurve from Geom,
31 Array1OfReal from TColStd,
32 SurfData from ChFiDS,
33 Shape from GeomAbs,
34 CurveType from GeomAbs,
35 HCurve from Adaptor3d,
36 Curve from Geom,
37 Curve from GeomAdaptor
38
39raises
40 OutOfRange from Standard,
41 NoSuchObject from Standard,
42 DomainError from Standard
43is
44
45 Create returns ElSpine from ChFiDS;
46
47 FirstParameter(me) returns Real from Standard
48 is redefined;
49
50 LastParameter(me) returns Real from Standard
51 is redefined;
52
73d0a668 53 GetSavedFirstParameter(me) returns Real from Standard;
54
55 GetSavedLastParameter(me) returns Real from Standard;
56
7fd59977 57 Continuity(me) returns Shape from GeomAbs
58 is redefined static;
59
60 NbIntervals(me: in out; S : Shape from GeomAbs)
61 returns Integer is redefined static;
62
63 Intervals(me: in out;
64 T : in out Array1OfReal from TColStd;
65 S : Shape from GeomAbs)
66 is redefined static;
67
68 Trim(me; First, Last, Tol : Real) returns HCurve from Adaptor3d
69 ---Purpose: Returns a curve equivalent of <me> between
70 -- parameters <First> and <Last>. <Tol> is used to
71 -- test for 3d points confusion.
72 is redefined;
73
74 Resolution(me; R3d : Real) returns Real
75 is redefined;
76
77 GetType(me) returns CurveType from GeomAbs
78 is redefined;
79
80 IsPeriodic(me) returns Boolean
81 is redefined;
82
83 SetPeriodic(me : in out ; I : Boolean from Standard) is static;
84
85 Period(me) returns Real
86 is redefined;
87
88 Value(me ; AbsC : Real ) returns Pnt from gp
89 is redefined;
90
91 D0(me ; AbsC : Real ; P : out Pnt from gp)
92 is redefined;
93
94 D1(me ; AbsC : Real ; P : out Pnt from gp; V1 : out Vec from gp)
95 is redefined;
96
97 D2(me ; AbsC : Real ; P : out Pnt from gp;
98 V1,V2 : out Vec from gp)
99 is redefined;
100
101 D3(me ; AbsC : Real ; P : out Pnt from gp;
102 V1,V2, V3 : out Vec from gp)
103 is redefined;
104
105 FirstParameter(me : in out; P : Real from Standard);
106
107 LastParameter(me : in out; P : Real from Standard);
108
73d0a668 109 SaveFirstParameter(me : in out);
110
111 SaveLastParameter(me : in out);
112
7fd59977 113 SetOrigin(me : in out; O : Real from Standard);
114
115 FirstPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
116
117 LastPointAndTgt(me; P : out Pnt from gp; T : out Vec from gp);
118
119 SetFirstPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
120
121 SetLastPointAndTgt(me : in out; P : Pnt from gp; T : Vec from gp);
122
123 SetCurve(me : in out; C : Curve from Geom);
124
6e33d3ce 125 Previous(me) returns SurfData from ChFiDS;
7fd59977 126 ---C++: return const &
127
128 ChangePrevious(me : in out) returns any SurfData from ChFiDS;
129 ---C++: return &
130
6e33d3ce 131 Next(me) returns SurfData from ChFiDS;
7fd59977 132 ---C++: return const &
133
134 ChangeNext(me : in out) returns any SurfData from ChFiDS;
135 ---C++: return &
136
137 Line(me) returns Lin from gp
138 raises
139 NoSuchObject from Standard
140 is redefined static;
141
142 Circle(me) returns Circ from gp
143 raises
144 NoSuchObject from Standard
145 is redefined static;
146
147 Ellipse(me) returns Elips from gp
148 raises
149 NoSuchObject from Standard
150 is redefined static;
151
152 Hyperbola(me) returns Hypr from gp
153 raises
154 NoSuchObject from Standard
155 is redefined static;
156
157 Parabola(me) returns Parab from gp
158 raises
159 NoSuchObject from Standard
160 is redefined static;
161
162
163 Bezier(me) returns BezierCurve from Geom
164 raises
165 NoSuchObject from Standard
166 is redefined static;
167 --Purpose: Warning : This will NOT make a copy of the
168 -- Bezier Curve : If you want to modify
169 -- the Curve please make a copy yourself
170 -- Also it will NOT trim the surface to
171 -- myFirst/Last.
172
173 BSpline(me) returns BSplineCurve from Geom
174 raises
175 NoSuchObject from Standard
176 is redefined static;
177 -- Purpose : Warning : This will NOT make a copy of the
178 -- BSpline Curve : If you want to modify
179 -- the Curve please make a copy yourself
180 -- Also it will NOT trim the surface to
181 -- myFirst/Last.
182fields
183
184curve : Curve from GeomAdaptor;
185
186ptfirst : Pnt from gp;
187ptlast : Pnt from gp;
188tgfirst : Vec from gp;
189tglast : Vec from gp;
190
191previous : SurfData from ChFiDS;
192next : SurfData from ChFiDS;
193
194pfirst : Real from Standard;
195plast : Real from Standard;
196period : Real from Standard;
197periodic : Boolean from Standard;
198
73d0a668 199pfirstsav : Real from Standard;
200plastsav : Real from Standard;
7fd59977 201
202end ElSpine;