blob: fbbde1f5f7bc94c1562804783261676482aede63 (
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
|
-- File: ShapeUpgrade_SplitCurve2d.cdl
-- Created: Thu Mar 12 11:14:13 1998
-- Author: Pierre BARRAS
-- <pbs@sgi84>
---Copyright: Matra Datavision 1998
class SplitCurve2d from ShapeUpgrade inherits SplitCurve from ShapeUpgrade
---Purpose: Splits a 2d curve with a criterion.
uses
Curve from Geom2d,
HArray1OfCurve from TColGeom2d
is
Create returns mutable SplitCurve2d from ShapeUpgrade;
---Purpose: Empty constructor.
Init (me: mutable; C: Curve from Geom2d);
---Purpose: Initializes with pcurve with its first and last parameters.
Init (me: mutable; C : Curve from Geom2d;
First, Last: Real);
---Purpose: Initializes with pcurve with its parameters.
Build (me: mutable; Segment: Boolean) is redefined;
---Purpose: If Segment is True, the result is composed with
-- segments of the curve bounded by the SplitValues. If
-- Segment is False, the result is composed with trimmed
-- Curves all based on the same complete curve.
--
GetCurves(me) returns HArray1OfCurve from TColGeom2d;
---C++: return const &
fields
myCurve : Curve from Geom2d is protected;
myResultingCurves: HArray1OfCurve from TColGeom2d is protected;
end;
|