blob: 50e2e12db0f00e2b1f7b6b8360e38f33b886adfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
-- File: IntCurveSurface_Intersection.cdl
-- Created: Wed Apr 7 16:18:57 1993
-- Author: Laurent BUCHARD
-- <lbr@sdsun2>
---Copyright: Matra Datavision 1993
deferred class Intersection from IntCurveSurface
---Level: Public
uses
IntersectionPoint from IntCurveSurface,
IntersectionSegment from IntCurveSurface,
SequenceOfPnt from IntCurveSurface,
SequenceOfSeg from IntCurveSurface
raises NotDone from StdFail,
OutOfRange from Standard
is
Initialize
---Purpose: Empty Constructor;
is protected;
IsDone(me)
---Purpose: returns the <done> field.
returns Boolean from Standard is static;
NbPoints(me)
---Purpose: returns the number of IntersectionPoint
-- if IsDone returns True.
-- else NotDone is raised.
returns Integer from Standard
raises NotDone from StdFail
is static;
Point(me; Index: Integer from Standard)
---Purpose: returns the IntersectionPoint of range <Index>
-- raises NotDone if the computation has failed or if
-- the computation has not been done
-- raises OutOfRange if Index is not in the range <1..NbPoints>
---C++: return const &
returns IntersectionPoint from IntCurveSurface
raises NotDone from StdFail,
OutOfRange from Standard
is static;
NbSegments(me)
---Purpose: returns the number of IntersectionSegment
-- if IsDone returns True.
-- else NotDone is raised.
returns Integer from Standard
raises NotDone from StdFail
is static;
Segment(me; Index: Integer from Standard)
---Purpose: returns the IntersectionSegment of range <Index>
-- raises NotDone if the computation has failed or if
-- the computation has not been done
-- raises OutOfRange if Index is not in the range <1..NbSegment>
---C++: return const &
returns IntersectionSegment from IntCurveSurface
raises NotDone from StdFail,
OutOfRange from Standard
is static;
SetValues(me:in out; Inter: Intersection from IntCurveSurface)
---Purpose: Internal method
-- copy the <Inter> fields to <me>
is static protected;
Append(me:in out; Inter: Intersection from IntCurveSurface;
FirstParamOnCurve: Real from Standard;
LastParamOnCurve : Real from Standard)
---Purpose: Internal method
-- Append the IntersectionPoints and
-- IntersectionSegments of <Inter> to <me>.
is static protected;
Append(me:in out; Pt: IntersectionPoint from IntCurveSurface)
---Purpose: Internal method
-- Append the IntersectionPoints of <Inter> to <me>
is static protected;
Append(me:in out; Seg: IntersectionSegment from IntCurveSurface)
---Purpose: Internal method
-- Append the IntersectionPoints of <Inter> to <me>
is static protected;
ResetFields(me:in out)
---Purpose: Internal method
-- Reset all the fields of <me>
-- Clear the sequences of IntersectionPoints and Segments
-- Set the field <done> to Standard_False.
is static protected;
Dump(me)
---Purpose: Dump all the fields.
is static;
fields
done : Boolean from Standard is protected;
lpnt : SequenceOfPnt from IntCurveSurface;
lseg : SequenceOfSeg from IntCurveSurface;
end Intersection;
|