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
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.
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.
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.
24 class CurveOnSurface from BRep inherits GCurve from BRep
26 ---Purpose: Representation of a curve by a curve in the
27 -- parametric space of a surface.
36 CurveRepresentation from BRep
40 Create(PC : Curve from Geom2d;
41 S : Surface from Geom;
42 L : Location from TopLoc)
43 returns mutable CurveOnSurface from BRep;
45 SetUVPoints(me : mutable; P1, P2 : Pnt2d from gp)
49 UVPoints(me; P1, P2 : out Pnt2d from gp)
53 D0(me; U : Real; P : out Pnt from gp);
54 ---Purpose: Computes the point at parameter U.
56 IsCurveOnSurface(me) returns Boolean
57 ---Purpose: Returns True.
60 IsCurveOnSurface(me; S : Surface from Geom; L : Location from TopLoc)
62 ---Purpose: A curve in the parametric space of a surface.
65 Surface(me) returns any Surface from Geom
66 ---C++: return const &
69 PCurve(me) returns any Curve from Geom2d
70 ---C++: return const &
73 PCurve(me : mutable; C : Curve from Geom2d)
76 Copy(me) returns mutable CurveRepresentation from BRep is virtual;
77 ---Purpose: Return a copy of this representation.
80 ---Purpose: Recomputes any derived data after a modification.
81 -- This is called when the range is modified.
86 myPCurve : Curve from Geom2d;
87 mySurface : Surface from Geom;
88 myUV1 : Pnt2d from gp is protected;
89 myUV2 : Pnt2d from gp is protected;