Commit | Line | Data |
---|---|---|

b311480e | 1 | -- Created on: 1997-10-31 |

2 | -- Created by: Joelle CHAUVET | |

3 | -- Copyright (c) 1997-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 CurveConstraint from BRepFill inherits CurveConstraint from GeomPlate | |

23 | ||

24 | uses | |

25 | Pnt from gp, | |

26 | Pnt2d from gp, | |

27 | Vec from gp, | |

28 | HCurveOnSurface from Adaptor3d, | |

29 | HCurve from Adaptor3d, | |

30 | Surface from Geom, | |

31 | Curve from Geom2d, | |

32 | Function from Law, | |

33 | SLProps from GeomLProp | |

34 | ||

35 | raises | |

36 | ConstructionError from Standard | |

37 | is | |

38 | ||

39 | Create (Boundary : HCurveOnSurface from Adaptor3d; | |

40 | Order : Integer from Standard ; | |

41 | NPt : Integer from Standard = 10; | |

42 | TolDist : Real from Standard = 0.0001; | |

43 | TolAng : Real from Standard = 0.01; | |

44 | TolCurv : Real from Standard = 0.1 | |

45 | ) | |

46 | returns CurveConstraint from BRepFill | |

47 | raises ConstructionError; | |

48 | --purpose : if Order is not -1 , 0, 1, 2 | |

49 | -- | |

50 | --- Purpose: Create a constraint | |

51 | -- Order is the order of the constraint. The possible values for order are -1,0,1,2. | |

52 | -- Order i means constraints Gi | |

53 | -- Npt is the number of points associated with the constraint. | |

54 | -- TolDist is the maximum error to satisfy for G0 constraints | |

55 | -- TolAng is the maximum error to satisfy for G1 constraints | |

56 | -- TolCurv is the maximum error to satisfy for G2 constraints | |

57 | -- These errors can be replaced by laws of criterion. | |

58 | ||

59 | Create (Boundary : HCurve from Adaptor3d; | |

60 | Tang : Integer from Standard; | |

61 | NPt : Integer from Standard = 10; | |

62 | TolDist : Real from Standard = 0.0001) | |

63 | returns CurveConstraint from BRepFill | |

64 | raises ConstructionError; | |

65 | --purpose : if Order is not 0 or -1 | |

66 | -- Purpose: Create a constraint | |

67 | -- Order is the order of the constraint. The possible values for order are -1,0. | |

68 | -- Order i means constraints Gi | |

69 | -- Npt is the number of points associated with the constraint. | |

70 | -- TolDist is the maximum error to satisfy for G0 constraints | |

71 | -- These errors can be replaced by laws of criterion. | |

72 | ||

73 | end; |