b311480e |
1 | -- Created on: 1997-09-30 |
2 | -- Created by: Roman BORISOV |
3 | -- Copyright (c) 1997-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 CurveOnSurface from Approx |
24 | |
25 | ---Purpose: |
26 | ---Purpose: Approximation of curve on surface |
27 | |
28 | uses |
29 | Surface from Geom, |
30 | HCurve2d from Adaptor2d, |
31 | HSurface from Adaptor3d, |
32 | BSplineCurve from Geom, |
33 | BSplineCurve from Geom2d, |
34 | Shape from GeomAbs |
35 | |
36 | raises OutOfRange from Standard, |
37 | ConstructionError from Standard |
38 | |
39 | is |
40 | |
41 | Create (C2D : HCurve2d from Adaptor2d; |
42 | Surf : HSurface from Adaptor3d; |
43 | First, |
44 | Last, |
45 | Tol : Real; |
46 | Continuity : Shape from GeomAbs; |
47 | MaxDegree : Integer ; |
48 | MaxSegments : Integer; |
49 | Only3d, |
50 | Only2d : Boolean from Standard = Standard_False) |
51 | returns CurveOnSurface from Approx |
52 | raises ConstructionError; |
53 | |
54 | |
55 | IsDone(me) returns Boolean from Standard; |
56 | |
57 | HasResult(me) returns Boolean from Standard; |
58 | |
59 | Curve3d(me) |
60 | returns BSplineCurve from Geom; |
61 | |
62 | MaxError3d(me) returns Real; |
63 | |
64 | Curve2d(me) |
65 | |
66 | ---Purpose: |
67 | returns BSplineCurve from Geom2d; |
68 | |
69 | MaxError2dU(me) returns Real; |
70 | MaxError2dV(me) returns Real; |
71 | |
72 | ---Purpose : returns the maximum errors relativly to the U component or the V component of the |
73 | -- 2d Curve |
74 | |
75 | fields |
76 | |
77 | myCurve2d : BSplineCurve from Geom2d; |
78 | myCurve3d : BSplineCurve from Geom; |
79 | myIsDone : Boolean from Standard; |
80 | myHasResult : Boolean from Standard; |
81 | myError3d : Real from Standard; |
82 | myError2dU : Real from Standard; |
83 | myError2dV : Real from Standard; |
84 | |
85 | end CurveOnSurface; |