0024032: An exception raised during projection of the curve on the surface
[occt.git] / src / ProjLib / ProjLib_PrjResolve.cdl
CommitLineData
b311480e 1-- Created on: 1997-11-06
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
22private class PrjResolve from ProjLib
23
24 ---Purpose:
25
26uses
27 Pnt2d from gp,
28 Surface from Adaptor3d,
29 Curve from Adaptor3d,
30 SurfacePtr from Adaptor3d,
31 CurvePtr from Adaptor3d
32
33raises
34 DomainError from Standard,
35 ConstructionError,
36 NotDone from StdFail
37
38is
39 Create (C: Curve from Adaptor3d; S: Surface from Adaptor3d; Fix: Integer)
40 returns PrjResolve
41 raises ConstructionError;
42
43
44 Perform(me: in out; t, U, V: Real; Tol, Inf, Sup: Pnt2d; FTol: Real from Standard = -1; StrictInside: Boolean from Standard = Standard_False)
45---Purpose: Calculates the ort from C(t) to S with a close point.
46 -- The close point is defined by the parameter values
47 -- U0 and V0.
48 -- The function F(u,v)=distance(S(u,v),C(t)) has an
49 -- extremum when gradient(F)=0. The algorithm searchs
50 -- a zero near the close point.
51 raises DomainError;
52 -- if U0,V0 are outside the definition ranges of the
53 -- surface.
54
55
56 IsDone (me) returns Boolean
57 ---Purpose: Returns True if the distance is found.
58 is static;
59
60 Solution (me) returns Pnt2d from gp
61 ---Purpose: Returns the point of the extremum distance.
62 raises NotDone from StdFail
63 -- if IsDone(me)=False.
64 is static;
65
66fields
67
68 myCurve : CurvePtr from Adaptor3d;
69 mySurface : SurfacePtr from Adaptor3d;
70 myDone : Boolean from Standard;
71 mySolution : Pnt2d from gp;
72 myFix : Integer from Standard;
73
74end PrjResolve;