1 -- Created on: 1995-06-02
2 -- Created by: Xavier BENVENISTE
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public version 2.1 as published
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class SameParameter from Approx
19 ---Purpose: Approximation of a PCurve on a surface to make its
20 -- parameter be the same that the parameter of a given 3d
24 HSurface from Adaptor3d,
25 HCurve from Adaptor3d,
26 HCurve2d from Adaptor2d,
30 BSplineCurve from Geom2d
32 raises OutOfRange from Standard,
33 ConstructionError from Standard
37 Create (C3D : Curve from Geom;
38 C2D : Curve from Geom2d;
39 S : Surface from Geom;
42 returns SameParameter from Approx
44 -- Warning: the C3D and C2D must have the same parametric domain.
46 raises ConstructionError;
49 Create (C3D : HCurve from Adaptor3d;
50 C2D : Curve from Geom2d;
51 S : HSurface from Adaptor3d;
54 returns SameParameter from Approx
56 --Warning: the C3D and C2D must have the same parametric domain.
58 raises ConstructionError;
61 Create (C3D : HCurve from Adaptor3d;
62 C2D : HCurve2d from Adaptor2d;
63 S : HSurface from Adaptor3d;
66 returns SameParameter from Approx
68 -- Warning: the C3D and C2D must have the same parametric domain.
70 raises ConstructionError;
74 Tol : Real from Standard)
75 ---Purpose: Compute the Pcurve (internal use only).
79 IsDone(me) returns Boolean from Standard;
82 TolReached(me) returns Real from Standard;
89 ---Purpose: Tells whether the original data had already the same
90 -- parameter up to the tolerance : in that case nothing
93 returns Boolean from Standard;
99 ---Purpose: Returns the 2D curve that has the same parameter as
100 -- the 3D curve once evaluated on the surface up to the
101 -- specified tolerance
102 returns BSplineCurve from Geom2d;
107 mySameParameter : Boolean from Standard;
108 myDone : Boolean from Standard;
109 myTolReached : Real from Standard;
110 myCurve2d : BSplineCurve from Geom2d;
111 myHCurve2d : HCurve2d from Adaptor2d;
112 myC3d : HCurve from Adaptor3d;
113 mySurf : HSurface from Adaptor3d;