1 -- File: BRepExtrema_ExtCF.cdl
2 -- Created: Wed Feb 9 12:57:57 1994
3 -- Author: Laurent PAINNOT
5 ---Copyright: Matra Datavision 1994
8 class ExtCF from BRepExtrema
11 Integer from Standard,
13 Boolean from Standard,
16 HSurface from BRepAdaptor,
18 SequenceOfReal from TColStd,
19 SequenceOfPOnCurv from Extrema,
20 SequenceOfPOnSurf from Extrema,
25 OutOfRange from Standard,
26 TypeMismatch from Standard
29 Create returns ExtCF from BRepExtrema;
31 Create(V : Edge from TopoDS;
33 ---Purpose: It calculates all the distances.
34 returns ExtCF from BRepExtrema;
36 Initialize(me: in out; E : Face from TopoDS)
40 Perform(me: in out; V : Edge from TopoDS;
42 ---Purpose: An exception is raised if the fields have not been
44 -- Be careful: this method uses the Face only for
45 -- classify not for the fields.
46 raises TypeMismatch from Standard
49 IsDone(me) returns Boolean from Standard
50 ---Purpose: True if the distances are found.
53 NbExt(me) returns Integer from Standard
54 ---Purpose: Returns the number of extremum distances.
55 raises NotDone from StdFail
59 SquareDistance(me; N : Integer from Standard) returns Real from Standard
60 ---Purpose: Returns the value of the <N>th extremum square distance.
61 raises NotDone from StdFail,
62 OutOfRange from Standard
66 IsParallel (me) returns Boolean
67 ---Purpose: Returns True if the curve is on a parallel surface.
71 ParameterOnEdge(me; N : Integer from Standard) returns Real
72 ---Purpose: Returns the parameters on the Edge of the <N>th
74 raises NotDone from StdFail,
75 OutOfRange from Standard
79 ParameterOnFace(me; N : Integer from Standard; U, V: out Real)
80 ---Purpose: Returns the parameters on the Face of the <N>th
82 raises NotDone from StdFail,
83 OutOfRange from Standard
87 PointOnEdge(me; N : Integer from Standard) returns Pnt from gp
88 ---Purpose: Returns the Point of the <N>th extremum distance.
89 raises NotDone from StdFail,
90 OutOfRange from Standard
94 PointOnFace(me; N : Integer from Standard) returns Pnt from gp
95 ---Purpose: Returns the Point of the <N>th extremum distance.
96 raises NotDone from StdFail,
97 OutOfRange from Standard
102 myExtrem : ExtCS from Extrema;
103 mynbext : Integer from Standard;
104 mySqDist : SequenceOfReal from TColStd;
105 myPointsOnS : SequenceOfPOnSurf from Extrema;
106 myPointsOnC : SequenceOfPOnCurv from Extrema;
107 myHS : HSurface from BRepAdaptor;