b311480e |
1 | -- Created on: 1992-09-28 |
2 | -- Created by: Remi GILET |
3 | -- Copyright (c) 1992-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 MakeArcOfHyperbola from GC inherits Root from GC |
18 | ---Purpose: Implements construction algorithms for an arc |
19 | -- of hyperbola in 3D space. The result is a Geom_TrimmedCurve curve. |
20 | -- A MakeArcOfHyperbola object provides a framework for: |
21 | -- - defining the construction of the arc of hyperbola, |
22 | -- - implementing the construction algorithm, and |
23 | -- - consulting the results. In particular, the |
24 | -- Value function returns the constructed arc of hyperbola. |
25 | |
26 | uses Pnt from gp, |
27 | Hypr from gp, |
28 | Dir from gp, |
29 | Ax1 from gp, |
30 | Real from Standard, |
31 | TrimmedCurve from Geom |
32 | |
33 | raises NotDone from StdFail |
34 | |
35 | is |
36 | |
37 | Create(Hypr : Hypr from gp ; |
38 | Alpha1, Alpha2 : Real from Standard ; |
39 | Sense : Boolean from Standard ) returns MakeArcOfHyperbola; |
40 | ---Purpose: Creates an arc of Hyperbola (TrimmedCurve from Geom) from |
41 | -- a Hyperbola between two parameters Alpha1 and Alpha2 |
42 | -- (given in radians). |
43 | |
44 | Create(Hypr : Hypr from gp ; |
45 | P : Pnt from gp ; |
46 | Alpha : Real from Standard ; |
47 | Sense : Boolean from Standard ) returns MakeArcOfHyperbola; |
48 | ---Purpose: Creates an arc of Hyperbola (TrimmedCurve from Geom) from |
49 | -- a Hyperbola between point <P> and the parameter |
50 | -- Alpha (given in radians). |
51 | |
52 | Create(Hypr : Hypr from gp ; |
53 | P1 : Pnt from gp ; |
54 | P2 : Pnt from gp ; |
55 | Sense : Boolean from Standard ) returns MakeArcOfHyperbola; |
56 | ---Purpose: Creates an arc of Hyperbola (TrimmedCurve from Geom) from |
57 | -- a Hyperbola between two points P1 and P2. |
58 | -- The orientation of the arc of hyperbola is: |
59 | -- - the sense of Hypr if Sense is true, or |
60 | -- - the opposite sense if Sense is false. |
61 | |
62 | Value(me) returns TrimmedCurve from Geom |
63 | raises NotDone |
64 | is static; |
65 | --- Purpose: Returns the constructed arc of hyperbola. |
66 | ---C++: return const& |
83eaf3e8 |
67 | ---C++: alias "operator const Handle(Geom_TrimmedCurve)& () const { return Value(); }" |
7fd59977 |
68 | |
69 | fields |
70 | |
71 | TheArc : TrimmedCurve from Geom; |
72 | --The solution from Geom. |
73 | |
74 | end MakeArcOfHyperbola; |