b311480e |
1 | -- Created on: 1999-05-13 |
2 | -- Created by: data exchange team |
3 | -- Copyright (c) 1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class ConvertCurve2dToBezier from ShapeUpgrade inherits SplitCurve2d from ShapeUpgrade |
18 | |
19 | ---Purpose: converts/splits a 2d curve to a list of beziers |
20 | |
21 | uses |
22 | |
23 | HSequenceOfCurve from TColGeom2d, |
24 | HSequenceOfReal from TColStd |
25 | |
26 | is |
27 | |
28 | Create returns ConvertCurve2dToBezier from ShapeUpgrade; |
29 | ---Purpose: Empty constructor. |
30 | |
31 | Compute(me: mutable) is redefined; |
32 | ---Purpose: Converts curve into a list of beziers, and stores the |
33 | -- splitting parameters on original curve. |
34 | |
35 | Build (me: mutable; Segment: Boolean) is redefined; |
36 | ---Purpose: Splits a list of beziers computed by Compute method according |
37 | -- the split values and splitting parameters. |
38 | |
39 | Segments(me) returns HSequenceOfCurve from TColGeom2d is private; |
40 | ---Purpose: Returns the list of bezier curves correspondent to original |
41 | -- curve. |
42 | |
43 | SplitParams(me) returns HSequenceOfReal from TColStd; |
44 | ---Purpose: Returns the list of splitted parameters in original curve |
45 | -- parametrisation. |
46 | |
47 | fields |
48 | |
49 | mySegments : HSequenceOfCurve from TColGeom2d; |
50 | mySplitParams: HSequenceOfReal from TColStd; |
51 | |
52 | end ConvertCurve2dToBezier; |