1 -- Created on: 1995-10-19
2 -- Created by: Andre LIEUTIER
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
22 class GtoCConstraint from Plate
23 ---Purpose: define a G1, G2 or G3 constraint on the Plate
32 PinpointConstraint from Plate
35 Create(ref : GtoCConstraint from Plate) returns GtoCConstraint;
37 Create(point2d : XY ; D1S , D1T : D1 ) returns GtoCConstraint;
39 -- D1S : first derivative of S, the surface we want to correct
40 -- D1T : first derivative of the reference surface
42 Create(point2d : XY ; D1S , D1T : D1;
43 nP : XYZ from gp ) returns GtoCConstraint;
45 -- D1S : first derivative of S, the surface we want to correct
46 -- D1T : first derivative of the reference surface
47 -- nP : normal vector to tge Plane in which we want the correction to occur
49 Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
50 D2S, D2T : D2 from Plate) returns GtoCConstraint;
52 -- D1S : first derivative of S, the surface we want to correct
53 -- D1T : first derivative of the reference surface
54 -- D2S : second derivative of S, the surface we want to correct
55 -- D2T : second derivative of the reference surface
57 Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
58 D2S, D2T : D2 from Plate;
59 nP : XYZ from gp ) returns GtoCConstraint;
61 -- D1S : first derivative of S, the surface we want to correct
62 -- D1T : first derivative of the reference surface
63 -- D2S : second derivative of S, the surface we want to correct
64 -- D2T : second derivative of the reference surface
65 -- nP : normal vector to tge Plane in which we want the correction to occur
67 Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
68 D2S, D2T : D2 from Plate;
69 D3S, D3T : D3 from Plate) returns GtoCConstraint;
71 -- D1S : first derivative of S, the surface we want to correct
72 -- D1T : first derivative of the reference surface
73 -- D2S : second derivative of S, the surface we want to correct
74 -- D2T : second derivative of the reference surface
75 -- D3S : third derivative of S, the surface we want to correct
76 -- D3T : third derivative of the reference surface
78 Create(point2d : XY from gp; D1S , D1T : D1 from Plate;
79 D2S, D2T : D2 from Plate;
80 D3S, D3T : D3 from Plate;
81 nP : XYZ from gp ) returns GtoCConstraint;
83 -- D1S : first derivative of S, the surface we want to correct
84 -- D1T : first derivative of the reference surface
85 -- D2S : second derivative of S, the surface we want to correct
86 -- D2T : second derivative of the reference surface
87 -- D3S : third derivative of S, the surface we want to correct
88 -- D3T : third derivative of the reference surface
89 -- nP : normal vector to tge Plane in which we want the correction to occur
92 nb_PPC(me) returns Integer;
94 ---C++: return const &
96 GetPPC(me; Index: Integer) returns PinpointConstraint;
97 -- "C style" Index : Index : 0 --> nb_PPC-1
100 ---C++: return const &
102 D1SurfInit(me) returns D1;
105 ---C++: return const &
109 myPPC : PinpointConstraint[9];
112 nb_PPConstraints : Integer;