b311480e |
1 | -- Created on: 1998-04-09 |
2 | -- Created by: Andre LIEUTIER |
3 | -- Copyright (c) 1998-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 NLPlate from NLPlate |
23 | ---Purpose: |
24 | -- |
25 | -- |
26 | |
27 | uses |
28 | XY from gp, |
29 | XYZ from gp, |
30 | StackOfPlate from NLPlate, |
31 | HGPPConstraint from NLPlate, |
32 | SequenceOfHGPPConstraint from NLPlate, |
33 | Shape from GeomAbs, |
34 | Surface from Geom |
35 | is |
36 | |
37 | Create(InitialSurface : Surface from Geom) returns NLPlate; |
38 | -- |
39 | -- Geometric Constraints |
40 | -- |
41 | Load (me : in out; GConst : HGPPConstraint); |
42 | |
43 | Solve(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1); |
44 | |
45 | Solve2(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1); |
46 | |
47 | IncrementalSolve(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1; |
48 | NbIncrements : Integer = 4; UVSliding : Boolean = Standard_False); |
49 | |
50 | IsDone(me) |
51 | ---Purpose: returns True if all has been correctly done. |
52 | returns Boolean; |
53 | |
54 | destroy(me : in out); |
55 | ---C++: alias ~ |
56 | |
57 | |
58 | Init(me: in out ); |
59 | ---Purpose: reset the Plate in the initial state |
60 | -- ( same as after Create((Surface)) |
61 | |
62 | Evaluate(me ; point2d : XY from gp ) |
63 | returns XYZ from gp ; |
64 | |
65 | EvaluateDerivative(me; point2d: XY from gp; |
66 | iu,iv : Integer) |
67 | returns XYZ from gp ; |
68 | |
69 | Continuity(me) returns Integer; |
70 | |
71 | -- private methods : |
72 | Iterate(me : in out; |
73 | ConstraintOrder, ResolutionOrder :Integer; |
74 | IncrementalLoading : Real = 1.0) returns Boolean |
75 | is private; |
76 | |
77 | ConstraintsSliding(me : in out; NbIterations : Integer = 3); |
78 | |
79 | MaxActiveConstraintOrder(me) returns Integer; |
80 | |
81 | |
82 | |
83 | fields |
84 | myInitialSurface : Surface from Geom; |
85 | myHGPPConstraints : SequenceOfHGPPConstraint; |
86 | mySOP : StackOfPlate; |
87 | OK : Boolean; |
88 | end; |
89 | |
90 | |