blob: 5067da167f05d931d5fe8d58aa67affa20fa8060 (
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
|
-- File: Approx_SameParameter.cdl
-- Created: Fri Jun 2 17:16:15 1995
-- Author: Xavier BENVENISTE
-- <xab@nonox>
---Copyright: Matra Datavision 1995
class SameParameter from Approx
---Purpose: Approximation of a PCurve on a surface to make its
-- parameter be the same that the parameter of a given 3d
-- reference curve.
uses
HSurface from Adaptor3d,
HCurve from Adaptor3d,
HCurve2d from Adaptor2d,
Surface from Geom,
Curve from Geom,
Curve from Geom2d,
BSplineCurve from Geom2d
raises OutOfRange from Standard,
ConstructionError from Standard
is
Create (C3D : Curve from Geom;
C2D : Curve from Geom2d;
S : Surface from Geom;
Tol : Real)
returns SameParameter from Approx
---Purpose:
-- Warning: the C3D and C2D must have the same parametric domain.
--
raises ConstructionError;
Create (C3D : HCurve from Adaptor3d;
C2D : Curve from Geom2d;
S : HSurface from Adaptor3d;
Tol : Real)
returns SameParameter from Approx
---Purpose:
--Warning: the C3D and C2D must have the same parametric domain.
raises ConstructionError;
Create (C3D : HCurve from Adaptor3d;
C2D : HCurve2d from Adaptor2d;
S : HSurface from Adaptor3d;
Tol : Real)
returns SameParameter from Approx
---Purpose:
-- Warning: the C3D and C2D must have the same parametric domain.
--
raises ConstructionError;
Build (me : in out;
Tol : Real from Standard)
---Purpose: Compute the Pcurve (internal use only).
is static private;
IsDone(me) returns Boolean from Standard;
---C++: inline
TolReached(me) returns Real from Standard;
---C++: inline
IsSameParameter(me)
---C++: inline
---Purpose: Tells whether the original data had already the same
-- parameter up to the tolerance : in that case nothing
-- is done.
returns Boolean from Standard;
Curve2d(me)
---C++: inline
---Purpose: Returns the 2D curve that has the same parameter as
-- the 3D curve once evaluated on the surface up to the
-- specified tolerance
returns BSplineCurve from Geom2d;
fields
mySameParameter : Boolean from Standard;
myDone : Boolean from Standard;
myTolReached : Real from Standard;
myCurve2d : BSplineCurve from Geom2d;
myHCurve2d : HCurve2d from Adaptor2d;
myC3d : HCurve from Adaptor3d;
mySurf : HSurface from Adaptor3d;
end SameParameter;
|