1 -- Created on: 1992-09-28
2 -- Created by: Remi GILET
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class MakeArcOfCircle from GCE2d inherits Root from GCE2d
18 ---Purpose: Implements construction algorithms for an arc of
19 -- circle in the plane. The result is a Geom2d_TrimmedCurve curve.
20 -- A MakeArcOfCircle object provides a framework for:
21 -- - defining the construction of the arc of circle,
22 -- - implementing the construction algorithm, and
23 -- - consulting the results. In particular, the Value
24 -- function returns the constructed arc of circle.
30 Boolean from Standard,
31 TrimmedCurve from Geom2d
33 raises NotDone from StdFail
37 Create(Circ : Circ2d from gp ;
38 Alpha1, Alpha2 : Real from Standard ;
39 Sense : Boolean from Standard = Standard_True)
40 returns MakeArcOfCircle;
41 ---Purpose: Makes an arc of circle (TrimmedCurve from Geom2d) from
42 -- a circle between two parameters Alpha1 and Alpha2.
43 -- The two parameters are angles. The parameters are
46 Create(Circ : Circ2d from gp ;
48 Alpha : Real from Standard ;
49 Sense : Boolean from Standard = Standard_True)
50 returns MakeArcOfCircle;
51 ---Purpose: Makes an arc of circle (TrimmedCurve from Geom2d) from
52 -- a circle between point <P> and the parameter
53 -- Alpha. Alpha is given in radians.
55 Create(Circ : Circ2d from gp ;
58 Sense : Boolean from Standard = Standard_True)
59 returns MakeArcOfCircle;
60 ---Purpose: Makes an arc of circle (TrimmedCurve from Geom2d) from
61 -- a circle between two points P1 and P2.
63 Create(P1 : Pnt2d from gp ;
66 returns MakeArcOfCircle;
67 ---Purpose: Makes an arc of circle (TrimmedCurve from Geom2d) from
68 -- three points P1,P2,P3 between two points P1 and P3,
69 -- and passing through the point P2.
71 Create(P1 : Pnt2d from gp ;
74 returns MakeArcOfCircle;
75 ---Purpose: Makes an arc of circle (TrimmedCurve from Geom2d) from
76 -- two points P1,P2 and the tangente to the solution at
79 Value(me) returns TrimmedCurve from Geom2d
83 ---Purpose: Returns the constructed arc of circle.
84 -- Exceptions StdFail_NotDone if no arc of circle is constructed.
86 Operator(me) returns TrimmedCurve from Geom2d
89 ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
93 TheArc : TrimmedCurve from Geom2d;
94 --The solution from Geom2d.