b311480e |
1 | -- Created on: 1994-09-15 |
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 | class ProjectOnSurface from ProjLib |
23 | |
24 | uses |
25 | |
26 | HCurve from Adaptor3d, |
27 | HSurface from Adaptor3d, |
28 | BSplineCurve from Geom |
29 | |
30 | is |
31 | |
32 | Create |
33 | ---Purpose: Create an empty projector. |
34 | returns ProjectOnSurface from ProjLib; |
35 | |
36 | |
37 | Create( S : HSurface from Adaptor3d) |
38 | ---Purpose: Create a projector normaly to the surface <S>. |
39 | returns ProjectOnSurface from ProjLib; |
40 | |
41 | Delete(me:out) is virtual; |
42 | ---C++: alias "Standard_EXPORT virtual ~ProjLib_ProjectOnSurface(){Delete() ; }" |
43 | |
44 | Load(me : in out; S : HSurface from Adaptor3d) |
45 | ---Purpose: Set the Surface to <S>. |
46 | -- To compute the projection, you have to Load the Curve. |
47 | is static; |
48 | |
49 | Load(me : in out; C : HCurve from Adaptor3d; Tolerance : Real) |
50 | ---Purpose: Compute the projection of the curve <C> on the Surface. |
51 | is static; |
52 | |
53 | IsDone(me) returns Boolean ; |
54 | |
55 | BSpline(me) returns BSplineCurve from Geom |
56 | is static ; |
57 | |
58 | fields |
59 | |
60 | myCurve : HCurve from Adaptor3d ; |
61 | mySurface : HSurface from Adaptor3d ; |
62 | myTolerance : Real ; |
63 | myIsDone : Boolean ; |
64 | myResult : BSplineCurve from Geom ; |
65 | |
66 | end ProjectOnSurface; |