0023552: Projection algorithm produces wrong results with default tolerance value.
[occt.git] / src / ProjLib / ProjLib_ComputeApproxOnPolarSurface.cdl
CommitLineData
b311480e 1-- Created on: 1994-10-07
2-- Created by: Bruno DUMORTIER
3-- Copyright (c) 1994-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
23class ComputeApproxOnPolarSurface from ProjLib
24
25
26
27uses
28 HCurve from Adaptor3d,
29 HCurve2d from Adaptor2d,
30 HSurface from Adaptor3d,
31 BSplineCurve from Geom2d,
32 Curve from Geom2d
33
34is
35
36 Create returns ComputeApproxOnPolarSurface from ProjLib;
37
38 Create(C : HCurve from Adaptor3d ;
39 S : HSurface from Adaptor3d ;
40 Tol : Real = 1.0e-4)
41 returns ComputeApproxOnPolarSurface from ProjLib;
42
43-- Create(C : HCurve from Adaptor3d ;
44-- S : HSurface from Adaptor3d)
45 ---purpose: pour etre en phase avec ProjOnSurf
46-- returns ComputeApproxOnPolarSurface from ProjLib;
47
48 Create(InitCurve2d : HCurve2d from Adaptor2d ;
49 C : HCurve from Adaptor3d ;
50 S : HSurface from Adaptor3d ;
51 Tol : Real)
52 returns ComputeApproxOnPolarSurface from ProjLib;
53
54 Create(InitCurve2d : HCurve2d from Adaptor2d ;
55 InitCurve2dBis : HCurve2d from Adaptor2d ;
56 C : HCurve from Adaptor3d ;
57 S : HSurface from Adaptor3d ;
58 Tol : Real)
59 returns ComputeApproxOnPolarSurface from ProjLib;
60
61 Perform(me : in out ; InitCurve2d : HCurve2d from Adaptor2d;
62 C : HCurve from Adaptor3d ;
63 S : HSurface from Adaptor3d )
64 returns BSplineCurve from Geom2d;
65
66 BuildInitialCurve2d(me : in out ; Curve : HCurve from Adaptor3d ;
67 S : HSurface from Adaptor3d )
68 returns HCurve2d from Adaptor2d;
69
70 ProjectUsingInitialCurve2d(me : in out ; Curve : HCurve from Adaptor3d ;
71 S : HSurface from Adaptor3d ;
72 InitCurve2d : HCurve2d from Adaptor2d )
73 returns BSplineCurve from Geom2d;
74
75 BSpline(me) returns BSplineCurve from Geom2d ;
76
77 Curve2d(me) returns Curve from Geom2d ;
78
79 IsDone(me) returns Boolean from Standard;
80
81fields
82
83 myProjIsDone : Boolean from Standard;
84 myTolerance : Real from Standard;
85 myBSpline : BSplineCurve from Geom2d ;
86 my2ndCurve : Curve from Geom2d ;
87-- myInitCurve2d : HCurve2d from Adaptor3d;
88
89end ComputeApproxOnPolarSurface;
90