b311480e |
1 | -- Created on: 1993-07-06 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1993-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. |
b311480e |
16 | |
7fd59977 |
17 | -- Update: Frederic MAUPAS |
7fd59977 |
18 | |
19 | |
20 | class CurveOnClosedSurface from PBRep inherits CurveOnSurface from PBRep |
21 | |
22 | ---Purpose: Representation of a curve by two pcurves on |
23 | -- a closed surface. |
24 | |
25 | uses |
26 | Curve from PGeom2d, |
27 | Surface from PGeom, |
28 | Location from PTopLoc, |
29 | Pnt2d from gp, |
30 | Shape from GeomAbs |
31 | |
32 | is |
33 | |
34 | Create(PC1, PC2 : Curve from PGeom2d; |
35 | CF : Real from Standard; |
36 | CL : Real from Standard; |
37 | S : Surface from PGeom; |
38 | L : Location from PTopLoc; |
39 | C : Shape from GeomAbs) |
6e33d3ce |
40 | returns CurveOnClosedSurface from PBRep; |
7fd59977 |
41 | ---Purpose: CF is curve first parameter |
42 | -- CL is curve last parameter |
43 | -- The two curves are SameParameter. |
44 | -- As far as they can't be computed from a Persistent Curve |
45 | -- they are given in the CurveOnClosedSurface constructor |
46 | |
47 | PCurve2(me) returns Curve from PGeom2d |
48 | is static; |
49 | ---Level: Internal |
50 | |
51 | Continuity(me) returns Shape from GeomAbs |
52 | is static; |
53 | ---Level: Internal |
54 | |
55 | IsCurveOnClosedSurface(me) returns Boolean |
56 | ---Purpose: Returns True. |
57 | is redefined; |
58 | |
59 | IsRegularity(me) returns Boolean |
60 | ---Purpose: Returns True |
61 | is redefined; |
62 | |
63 | SetUVPoints2(me : mutable; Pnt1, Pnt2 : Pnt2d from gp); |
64 | |
65 | FirstUV2(me) returns Pnt2d from gp; |
66 | |
67 | LastUV2(me) returns Pnt2d from gp; |
68 | |
69 | fields |
70 | |
71 | myPCurve2 : Curve from PGeom2d; |
72 | myContinuity : Shape from GeomAbs; |
73 | myUV21 : Pnt2d from gp; |
74 | myUV22 : Pnt2d from gp; |
75 | |
76 | end CurveOnClosedSurface; |
77 | |
78 | |
79 | |
80 | |
81 | |