b311480e |
1 | -- Created on: 1998-04-09 |
2 | -- Created by: Andre LIEUTIER |
3 | -- Copyright (c) 1998-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class NLPlate from NLPlate |
18 | ---Purpose: |
19 | -- |
20 | -- |
21 | |
22 | uses |
23 | XY from gp, |
24 | XYZ from gp, |
25 | StackOfPlate from NLPlate, |
26 | HGPPConstraint from NLPlate, |
27 | SequenceOfHGPPConstraint from NLPlate, |
28 | Shape from GeomAbs, |
29 | Surface from Geom |
30 | is |
31 | |
32 | Create(InitialSurface : Surface from Geom) returns NLPlate; |
33 | -- |
34 | -- Geometric Constraints |
35 | -- |
36 | Load (me : in out; GConst : HGPPConstraint); |
37 | |
38 | Solve(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1); |
39 | |
40 | Solve2(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1); |
41 | |
42 | IncrementalSolve(me : in out; ord : Integer = 2; InitialConsraintOrder : Integer=1; |
43 | NbIncrements : Integer = 4; UVSliding : Boolean = Standard_False); |
44 | |
45 | IsDone(me) |
46 | ---Purpose: returns True if all has been correctly done. |
47 | returns Boolean; |
48 | |
49 | destroy(me : in out); |
50 | ---C++: alias ~ |
51 | |
52 | |
53 | Init(me: in out ); |
54 | ---Purpose: reset the Plate in the initial state |
55 | -- ( same as after Create((Surface)) |
56 | |
57 | Evaluate(me ; point2d : XY from gp ) |
58 | returns XYZ from gp ; |
59 | |
60 | EvaluateDerivative(me; point2d: XY from gp; |
61 | iu,iv : Integer) |
62 | returns XYZ from gp ; |
63 | |
64 | Continuity(me) returns Integer; |
65 | |
66 | -- private methods : |
67 | Iterate(me : in out; |
68 | ConstraintOrder, ResolutionOrder :Integer; |
69 | IncrementalLoading : Real = 1.0) returns Boolean |
70 | is private; |
71 | |
72 | ConstraintsSliding(me : in out; NbIterations : Integer = 3); |
73 | |
74 | MaxActiveConstraintOrder(me) returns Integer; |
75 | |
76 | |
77 | |
78 | fields |
79 | myInitialSurface : Surface from Geom; |
80 | myHGPPConstraints : SequenceOfHGPPConstraint; |
81 | mySOP : StackOfPlate; |
82 | OK : Boolean; |
83 | end; |
84 | |
85 | |