1 -- Created on: 1995-07-18
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-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
9 -- under the terms of the GNU Lesser General Public 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 CurveTool from Extrema
26 Array1OfReal from TColStd,
27 BezierCurve from Geom,
28 BSplineCurve from Geom,
29 CurveType from GeomAbs,
36 FirstParameter(myclass; C : Curve from Adaptor3d)
37 returns Real from Standard;
40 LastParameter(myclass; C : Curve from Adaptor3d)
41 returns Real from Standard;
44 Continuity(myclass; C: Curve from Adaptor3d) returns Shape from GeomAbs;
47 NbIntervals(myclass; C: in out Curve from Adaptor3d; S : Shape from GeomAbs) returns Integer;
48 ---Purpose: Returns the number of intervals for continuity
49 -- <S>. May be one if Continuity(me) >= <S>
53 Intervals(myclass; C: in out Curve from Adaptor3d; T : in out Array1OfReal from TColStd;
54 S : Shape from GeomAbs);
55 ---Purpose: Stores in <T> the parameters bounding the intervals
58 -- The array must provide enough room to accomodate
59 -- for the parameters. i.e. T.Length() > NbIntervals()
62 IsPeriodic(myclass;C: Curve from Adaptor3d) returns Boolean;
64 Period(myclass; C: Curve from Adaptor3d) returns Real;
68 Resolution(myclass; C: Curve from Adaptor3d; R3d: Real) returns Real;
72 GetType(myclass;C: Curve from Adaptor3d) returns CurveType from GeomAbs;
76 Value(myclass; C : Curve from Adaptor3d;
77 U : Real from Standard)
81 D0 (myclass; C : Curve from Adaptor3d;
82 U : Real from Standard;
86 D1 (myclass; C : Curve from Adaptor3d;
87 U : Real from Standard;
92 D2 (myclass; C : Curve from Adaptor3d;
93 U : Real from Standard;
95 V1, V2 : out Vec from gp);
98 D3 (myclass; C : Curve from Adaptor3d;
99 U : Real from Standard;
101 V1, V2, V3 : out Vec from gp);
104 DN (myclass; C : Curve from Adaptor3d;
105 U : Real from Standard;
106 N : Integer from Standard)
110 Line(myclass; C : Curve from Adaptor3d) returns Lin from gp;
113 Circle(myclass; C : Curve from Adaptor3d) returns Circ from gp;
116 Ellipse(myclass; C : Curve from Adaptor3d) returns Elips from gp;
119 Hyperbola(myclass; C : Curve from Adaptor3d) returns Hypr from gp;
122 Parabola(myclass; C : Curve from Adaptor3d) returns Parab from gp;
125 Degree(myclass; C : Curve from Adaptor3d) returns Integer;
128 IsRational(myclass; C : Curve from Adaptor3d) returns Boolean;
131 NbPoles(myclass; C : Curve from Adaptor3d) returns Integer;
134 NbKnots(myclass; C : Curve from Adaptor3d) returns Integer;
137 Bezier(myclass; C : Curve from Adaptor3d) returns BezierCurve from Geom;
140 BSpline(myclass; C : Curve from Adaptor3d) returns BSplineCurve from Geom;