0024470: Wrong result done by General Fuse algorithm.
[occt.git] / src / IntSurf / IntSurf_Quadric.cdl
1 -- Created on: 1992-04-13
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public version 2.1 as published
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class Quadric from IntSurf 
18
19         ---Purpose: 
20
21
22 uses Ax3         from gp,
23      Pnt         from gp,
24      Vec         from gp,
25      Dir         from gp,
26      Lin         from gp,
27      Pln         from gp,
28      Cylinder    from gp,
29      Sphere      from gp,
30      Cone        from gp, 
31      Torus       from gp,
32      SurfaceType from GeomAbs     
33
34 is
35
36     Create
37     
38         returns Quadric from IntSurf;
39
40
41     Create(P: Pln from gp)
42     
43         returns Quadric from IntSurf;
44
45
46     Create(C: Cylinder from gp)
47     
48         returns Quadric from IntSurf;
49
50
51     Create(S: Sphere from gp)
52     
53         returns Quadric from IntSurf;
54
55
56     Create(C: Cone from gp)
57     
58         returns Quadric from IntSurf;
59  
60  
61     Create(T: Torus from gp)
62     
63         returns Quadric from IntSurf;
64
65
66     SetValue(me: in out; P: Pln from gp)
67     
68         is static;
69
70
71     SetValue(me: in out; C: Cylinder from gp)
72     
73         is static;
74
75
76     SetValue(me: in out; S: Sphere from gp)
77     
78         is static;
79
80
81     SetValue(me: in out; C: Cone from gp)
82     
83         is static;
84  
85     SetValue(me: in out; T: Torus from gp)
86     
87         is static;
88
89
90     Distance(me; P: Pnt from gp)
91     
92         returns Real from Standard
93
94         is static;
95
96
97     Gradient(me; P: Pnt from gp)
98
99         returns Vec from gp
100         
101         is static;
102
103
104     ValAndGrad(me; P: Pnt from gp; Dist: out Real from Standard;
105                Grad: out Vec from gp)
106     
107         is static;
108
109
110     TypeQuadric(me)
111     
112         returns SurfaceType from GeomAbs
113         ---C++: inline
114         
115         is static;
116
117
118     Plane(me)
119     
120         returns Pln from gp
121         ---C++: inline
122         
123         is static;
124
125
126     Sphere(me)
127     
128         returns Sphere from gp
129         ---C++: inline
130         
131         is static;
132
133
134     Cylinder(me)
135     
136         returns Cylinder from gp
137         ---C++: inline
138         
139         is static;
140
141
142     Cone(me)
143     
144         returns Cone from gp
145         ---C++: inline
146         
147         is static;
148  
149  
150     Torus(me)
151     
152         returns Torus from gp
153         ---C++: inline
154         
155         is static;
156
157
158
159     Value(me; U,V: Real)
160     
161         returns Pnt from gp
162         
163         is static;
164
165
166     D1(me; U,V: Real; P: out Pnt; D1U,D1V: out Vec from gp)
167     
168         is static;
169
170
171     DN(me; U,V: Real; Nu,Nv: Integer)
172     
173         returns Vec from gp
174         
175         is static;
176
177
178     Normale(me; U,V: Real)
179     
180         returns Vec from gp
181         
182         is static;
183
184
185     Parameters(me; P: Pnt from gp; U,V: out Real)
186     
187         is static;
188
189
190     Normale(me; P: Pnt from gp)
191     
192         returns Vec from gp
193         
194         is static;
195
196
197 fields
198
199     ax3      : Ax3         from gp;
200     lin      : Lin         from gp;
201     typ      : SurfaceType from GeomAbs;
202     prm1     : Real        from Standard;
203     prm2     : Real        from Standard;
204     prm3     : Real        from Standard;
205     prm4     : Real        from Standard;
206     ax3direc : Boolean     from Standard;
207
208 end Quadric;