blob: 35f76b273d0ccd4ec9483b505eae49e721bc3a81 (
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: IntTools_ShrunkRange.cdl
-- Created: Sun Mar 11 10:31:46 2001
-- Author: Peter KURNEV
-- <pkv@irinox>
---Copyright: Matra Datavision 2001
class ShrunkRange from IntTools
---Purpose:
--- The class provides the computation of
--- a working (shrunk) range [t1, t2] for
--- the 3D-curve of the edge.
uses
Edge from TopoDS,
Vertex from TopoDS,
Range from IntTools,
Box from Bnd,
Context from IntTools,
PContext from IntTools
--raises
is
Create
returns ShrunkRange from IntTools;
---Purpose:
--- Empty constructor
---
Create (aE : Edge from TopoDS;
aV1 : Vertex from TopoDS;
aV2 : Vertex from TopoDS;
aR : Range from IntTools;
ICtx: Context from IntTools)
returns ShrunkRange from IntTools;
---Purpose:
---
SetShrunkRange(me:out; aR:Range from IntTools);
---Purpose:
--- Sets an shrunk range
---
ShrunkRange(me)
returns Range from IntTools;
---C++: return const&
---Purpose:
--- Returns shrunk range
---
BndBox (me)
returns Box from Bnd;
---C++: return const&
---Purpose:
--- Returns bounding box for edge restricted
--- by shrunk range
---
Edge (me)
returns Edge from TopoDS;
---C++: return const&
---Purpose:
--- Returns edge for which
--- the shrunk range is computed
---
Perform(me:out);
---Purpose:
--- Computes shrunk range for
--- an edge given in constructor
---
IsDone (me)
returns Boolean from Standard;
---Purpose:
--- Returns true if no error occured
--- during shrunk range computation
---
ErrorStatus(me)
returns Integer from Standard;
---Purpose:
--- Returns code of computing shrunk range
--- completion
--- 0 - means successful completion
--- 1 - nothing has been done
--- 2 - initial range is out of edge's range
--- 3 - first boundary of initial range is more than
--- last boundary
--- 4 - projection of first vertex failed
--- 5 - projection of second vertex failed
--- 6 - shrunk range can not be computed
--- shrunk range is setted to initial range
---
fields
myEdge : Edge from TopoDS;
myV1 : Vertex from TopoDS;
myV2 : Vertex from TopoDS;
myRange : Range from IntTools;
myShrunkRange : Range from IntTools;
myBndBox : Box from Bnd;
myCtx : PContext from IntTools;
myIsDone : Boolean from Standard;
myErrorStatus : Integer from Standard;
end ShrunkRange;
|