1 -- Created on: 1995-07-18
2 -- Created by: Modelistation
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.
23 class Curve2dTool from Extrema
26 Curve2d from Adaptor2d,
27 Array1OfReal from TColStd,
29 CurveType from GeomAbs,
37 BezierCurve from Geom2d,
38 BSplineCurve from Geom2d,
39 HCurve2d from Adaptor2d
43 FirstParameter(myclass; C : Curve2d from Adaptor2d) returns Real
47 LastParameter(myclass; C : Curve2d from Adaptor2d) returns Real
51 Continuity(myclass; C : Curve2d from Adaptor2d) returns Shape from GeomAbs
55 NbIntervals(myclass; C : Curve2d from Adaptor2d; S : Shape from GeomAbs) returns Integer
56 ---Purpose: If necessary, breaks the curve in intervals of
57 -- continuity <S>. And returns the number of
62 Intervals(myclass; C : Curve2d from Adaptor2d;
63 T : in out Array1OfReal from TColStd;
64 S : Shape from GeomAbs);
65 ---Purpose: Stores in <T> the parameters bounding the intervals
70 IsClosed(myclass; C : Curve2d from Adaptor2d) returns Boolean
74 IsPeriodic(myclass; C : Curve2d from Adaptor2d) returns Boolean
78 Period(myclass; C : Curve2d from Adaptor2d) returns Real
82 Value(myclass; C : Curve2d from Adaptor2d; U : Real) returns Pnt2d from gp
83 --- Purpose : Computes the point of parameter U on the curve.
87 D0 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp)
88 --- Purpose : Computes the point of parameter U on the curve.
92 D1 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp ; V : out Vec2d from gp)
93 --- Purpose : Computes the point of parameter U on the curve with its
98 D2 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2 : out Vec2d from gp)
100 -- Returns the point P of parameter U, the first and second
101 -- derivatives V1 and V2.
105 D3 (myclass; C : Curve2d from Adaptor2d; U : Real; P : out Pnt2d from gp; V1, V2, V3 : out Vec2d from gp)
107 -- Returns the point P of parameter U, the first, the second
108 -- and the third derivative.
112 DN (myclass; C : Curve2d from Adaptor2d; U : Real; N : Integer) returns Vec2d from gp
114 -- The returned vector gives the value of the derivative for the
115 -- order of derivation N.
119 Resolution(myclass; C : Curve2d from Adaptor2d ; R3d : Real) returns Real
120 ---Purpose : Returns the parametric resolution corresponding
121 -- to the real space resolution <R3d>.
125 GetType(myclass; C : Curve2d from Adaptor2d) returns CurveType from GeomAbs
126 ---Purpose: Returns the type of the curve in the current
127 -- interval : Line, Circle, Ellipse, Hyperbola,
128 -- Parabola, BezierCurve, BSplineCurve, OtherCurve.
133 Line(myclass; C : Curve2d from Adaptor2d) returns Lin2d from gp
137 Circle(myclass; C : Curve2d from Adaptor2d) returns Circ2d from gp
141 Ellipse(myclass; C : Curve2d from Adaptor2d) returns Elips2d from gp
145 Hyperbola(myclass; C : Curve2d from Adaptor2d) returns Hypr2d from gp
149 Parabola(myclass; C : Curve2d from Adaptor2d) returns Parab2d from gp
153 Degree(myclass; C : Curve2d from Adaptor2d) returns Integer
157 IsRational(myclass; C : Curve2d from Adaptor2d) returns Boolean
161 NbPoles(myclass; C : Curve2d from Adaptor2d) returns Integer
165 NbKnots(myclass; C : Curve2d from Adaptor2d) returns Integer
169 Bezier(myclass; C : Curve2d from Adaptor2d) returns BezierCurve from Geom2d
173 BSpline(myclass; C : Curve2d from Adaptor2d) returns BSplineCurve from Geom2d