blob: 45c9bb9d8115beedb7c5128d3cfc16b6e51accbf (
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
|
-- File: PConicTool.cdl
-- Created: Thu Mar 26 16:22:34 1992
-- Author: Laurent BUCHARD
-- <lbr@topsn3>
---Copyright: Matra Datavision 1992
private class PConicTool from IntCurve
---Purpose: Implementation of the ParTool from IntImpParGen
-- for conics of gp, using the class PConic from IntCurve.
---Level: Internal
uses Pnt2d from gp,
Vec2d from gp,
Lin2d from gp,
XY from gp,
PConic from IntCurve
is
EpsX (myclass; C: PConic)
--Purpose: Tolerance used by mathematical algorithms
-- usually about 1e-10
returns Real from Standard;
NbSamples(myclass; C: PConic)
--Purpose: returns the number of samples on the parametric curve
returns Integer from Standard;
NbSamples(myclass; C: PConic; U0,U1: Real from Standard)
--Purpose: returns the number of samples on the parametric curve
returns Integer from Standard;
Value (myclass; C: PConic from IntCurve; X: Real from Standard)
--Purpose: Returns the geometric point which lies at the
-- parameter x on the parametric curve.
returns Pnt2d from gp;
D1 (myclass; C: PConic from IntCurve; U: Real from Standard ;
P: out Pnt2d; T: out Vec2d);
--Purpose: Computes the Value, First and Second Derivative at
-- the parameter U on the curve.
D2 (myclass; C: PConic from IntCurve; U: Real from Standard ;
P: out Pnt2d; T,N: out Vec2d);
--Purpose: Computes the Value, First and Second Derivative at
-- the parameter U on the curve.
end PConicTool;
|