0023604: Uninitialized variables in debug mode
[occt.git] / src / Extrema / Extrema_ExtPRevS.cdl
CommitLineData
b311480e 1-- Created on: 1999-09-21
2-- Created by: Edward AGAPOV
3-- Copyright (c) 1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class ExtPRevS from Extrema
24
25 ---Purpose: It calculates all the extremum (minimum and
26 -- maximum) distances between a point and a surface
27 -- of revolution.
28
29uses
30 POnSurf from Extrema,
31 GenExtPS from Extrema,
32
33 SurfaceOfRevolution from Adaptor3d,
34 SurfacePtr from Adaptor3d,
35
36 Ax2 from gp,
37 Pnt from gp
38
39raises
40 NotDone from StdFail,
41 OutOfRange
42
43
44is
45
46 Create returns ExtPRevS from Extrema;
47
48 Create (P: Pnt; S: SurfaceOfRevolution from Adaptor3d;
49 Umin, Usup, Vmin, Vsup: Real;
50 TolU,TolV: Real)
51 returns ExtPRevS from Extrema;
52 ---Purpose: It calculates all the distances between a point
53 -- from gp and a SurfacePtr from Adaptor3d.
54
55 Create (P: Pnt; S: SurfaceOfRevolution from Adaptor3d;
56 TolU,TolV: Real)
57 returns ExtPRevS from Extrema;
58 ---Purpose: It calculates all the distances between a point
59 -- from gp and a SurfacePtr from Adaptor3d.
60
61 Initialize(me: in out; S: SurfaceOfRevolution from Adaptor3d;
62 Umin, Usup, Vmin, Vsup: Real;
63 TolU,TolV: Real)
64 is static;
65
66 Perform (me: in out; P: Pnt)
67 is static;
68
69 IsDone (me) returns Boolean
70 ---Purpose: Returns True if the distances are found.
71 is static;
72
73 NbExt (me) returns Integer
74 ---Purpose: Returns the number of extremum distances.
75 raises NotDone from StdFail
76 -- if IsDone(me)=False.
77 is static;
78
79 SquareDistance (me; N: Integer) returns Real
80 ---Purpose: Returns the value of the Nth resulting square distance.
81 raises NotDone from StdFail,
82 -- if IsDone(me)=False.
83 OutOfRange
84 -- if N < 1 or N > NbPoints(me).
85 is static;
86
87 Point (me; N: Integer) returns POnSurf
88 ---Purpose: Returns the point of the Nth resulting distance.
89 raises NotDone from StdFail,
90 -- if IsDone(me)=False.
91 OutOfRange
92 -- if N < 1 or N > NbPoints(me).
93 is static;
94
95fields
96 myS : SurfacePtr from Adaptor3d;
97 myvinf : Real from Standard;
98 myvsup : Real from Standard;
99 mytolv : Real from Standard;
100
101 myPosition : Ax2 from gp;
102 myExtPS : GenExtPS from Extrema;
103
104 myIsAnalyticallyComputable : Boolean from Standard;
105
106 myDone : Boolean;
107 myNbExt: Integer;
108 mySqDist: Real [6];
109 myPoint: POnSurf from Extrema [6];
110
111end ExtPRevS;