7fd59977 |
1 | -- File: ShapeUpgrade_SplitCurve3d.cdl |
2 | -- Created: Thu Mar 12 11:14:13 1998 |
3 | -- Author: Roman LYGIN |
4 | -- <rln@kinox.nnov.matra-dtv.fr> |
5 | ---Copyright: Matra Datavision 1998 |
6 | |
7 | class SplitCurve3d from ShapeUpgrade inherits SplitCurve from ShapeUpgrade |
8 | |
9 | ---Purpose: Splits a 3d curve with a criterion. |
10 | |
11 | uses |
12 | Curve from Geom, |
13 | HArray1OfCurve from TColGeom |
14 | |
15 | is |
16 | |
17 | Create returns mutable SplitCurve3d from ShapeUpgrade; |
18 | ---Purpose: Empty constructor. |
19 | |
20 | Init (me: mutable; C: Curve from Geom); |
21 | ---Purpose: Initializes with curve with its first and last parameters. |
22 | |
23 | Init (me: mutable; C : Curve from Geom; |
24 | First, Last: Real); |
25 | ---Purpose: Initializes with curve with its parameters. |
26 | |
27 | Build (me: mutable; Segment: Boolean) is redefined; |
28 | ---Purpose: If Segment is True, the result is composed with |
29 | -- segments of the curve bounded by the SplitValues. If |
30 | -- Segment is False, the result is composed with trimmed |
31 | -- Curves all based on the same complete curve. |
32 | -- |
33 | |
34 | GetCurves(me) returns HArray1OfCurve from TColGeom; |
35 | ---C++: return const & |
36 | |
37 | fields |
38 | |
39 | myCurve : Curve from Geom is protected; |
40 | myResultingCurves: HArray1OfCurve from TColGeom is protected; |
41 | |
42 | end; |
43 | |