b311480e |
1 | -- Created on: 1997-10-31 |
2 | -- Created by: Joelle CHAUVET |
3 | -- Copyright (c) 1997-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 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
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 CurveConstraint from BRepFill inherits CurveConstraint from GeomPlate |
18 | |
19 | uses |
20 | Pnt from gp, |
21 | Pnt2d from gp, |
22 | Vec from gp, |
23 | HCurveOnSurface from Adaptor3d, |
24 | HCurve from Adaptor3d, |
25 | Surface from Geom, |
26 | Curve from Geom2d, |
27 | Function from Law, |
28 | SLProps from GeomLProp |
29 | |
30 | raises |
31 | ConstructionError from Standard |
32 | is |
33 | |
34 | Create (Boundary : HCurveOnSurface from Adaptor3d; |
35 | Order : Integer from Standard ; |
36 | NPt : Integer from Standard = 10; |
37 | TolDist : Real from Standard = 0.0001; |
38 | TolAng : Real from Standard = 0.01; |
39 | TolCurv : Real from Standard = 0.1 |
40 | ) |
41 | returns CurveConstraint from BRepFill |
42 | raises ConstructionError; |
43 | --purpose : if Order is not -1 , 0, 1, 2 |
44 | -- |
45 | --- Purpose: Create a constraint |
46 | -- Order is the order of the constraint. The possible values for order are -1,0,1,2. |
47 | -- Order i means constraints Gi |
48 | -- Npt is the number of points associated with the constraint. |
49 | -- TolDist is the maximum error to satisfy for G0 constraints |
50 | -- TolAng is the maximum error to satisfy for G1 constraints |
51 | -- TolCurv is the maximum error to satisfy for G2 constraints |
52 | -- These errors can be replaced by laws of criterion. |
53 | |
54 | Create (Boundary : HCurve from Adaptor3d; |
55 | Tang : Integer from Standard; |
56 | NPt : Integer from Standard = 10; |
57 | TolDist : Real from Standard = 0.0001) |
58 | returns CurveConstraint from BRepFill |
59 | raises ConstructionError; |
60 | --purpose : if Order is not 0 or -1 |
61 | -- Purpose: Create a constraint |
62 | -- Order is the order of the constraint. The possible values for order are -1,0. |
63 | -- Order i means constraints Gi |
64 | -- Npt is the number of points associated with the constraint. |
65 | -- TolDist is the maximum error to satisfy for G0 constraints |
66 | -- These errors can be replaced by laws of criterion. |
67 | |
68 | end; |