b311480e |
1 | -- Created on: 1993-07-06 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | class CurveOnClosedSurface from BRep inherits CurveOnSurface from BRep |
24 | |
25 | ---Purpose: Representation of a curve by two pcurves on |
26 | -- a closed surface. |
27 | |
28 | uses |
29 | Pnt2d from gp, |
30 | Box2d from Bnd, |
31 | Curve from Geom2d, |
32 | Surface from Geom, |
33 | Location from TopLoc, |
34 | Shape from GeomAbs, |
35 | CurveRepresentation from BRep |
36 | |
37 | is |
38 | |
39 | Create(PC1, PC2 : Curve from Geom2d; |
40 | S : Surface from Geom; |
41 | L : Location from TopLoc; |
42 | C : Shape from GeomAbs) |
43 | returns mutable CurveOnClosedSurface from BRep; |
44 | |
45 | SetUVPoints2(me : mutable; P1, P2 : Pnt2d from gp) |
46 | ---C++: inline |
47 | is static; |
48 | |
49 | UVPoints2(me; P1, P2 : out Pnt2d from gp) |
50 | ---C++: inline |
51 | is static; |
52 | |
53 | IsCurveOnClosedSurface(me) returns Boolean |
54 | ---Purpose: Returns True. |
55 | is redefined; |
56 | |
57 | IsRegularity(me) returns Boolean |
58 | ---Purpose: Returns True |
59 | is redefined; |
60 | |
61 | IsRegularity(me; S1,S2 : Surface from Geom; |
62 | L1,L2 : Location from TopLoc) |
63 | returns Boolean |
64 | ---Purpose: A curve on two surfaces (continuity). |
65 | is redefined; |
66 | |
67 | PCurve2(me) returns any Curve from Geom2d |
68 | ---C++: return const & |
69 | is redefined; |
70 | |
71 | Surface2(me) returns any Surface from Geom |
72 | ---Purpose: Returns Surface() |
73 | -- |
74 | ---C++: return const & |
75 | is redefined; |
76 | |
77 | Location2(me) returns Location from TopLoc |
78 | ---Purpose: Returns Location() |
79 | -- |
80 | ---C++: return const & |
81 | is redefined; |
82 | |
83 | Continuity(me) returns Shape from GeomAbs |
84 | ---C++: return const & |
85 | is redefined; |
86 | |
87 | Continuity(me : mutable; C : Shape from GeomAbs) |
88 | is redefined; |
89 | |
90 | PCurve2(me : mutable; C : Curve from Geom2d) |
91 | is redefined; |
92 | |
93 | Copy(me) returns mutable CurveRepresentation from BRep |
94 | ---Purpose: Return a copy of this representation. |
95 | is redefined; |
96 | |
97 | Update(me : mutable) |
98 | ---Purpose: Recomputes any derived data after a modification. |
99 | -- This is called when the range is modified. |
100 | is redefined; |
101 | |
102 | fields |
103 | |
104 | myPCurve2 : Curve from Geom2d; |
105 | myContinuity : Shape from GeomAbs; |
106 | myUV21 : Pnt2d from gp; |
107 | myUV22 : Pnt2d from gp; |
108 | |
109 | end CurveOnClosedSurface; |
110 | |
111 | |
112 | |
113 | |
114 | |