0024023: Revamp the OCCT Handle -- ambiguity
[occt.git] / src / BRepGProp / BRepGProp_EdgeTool.cdl
CommitLineData
b311480e 1-- Created on: 1993-12-07
2-- Created by: Modelistation
3-- Copyright (c) 1993-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
17class EdgeTool from BRepGProp
18
19 --- Purpose : Provides the required methods to instantiate
20 -- CGProps from GProp with a Curve from BRepAdaptor.
21
22uses Pnt from gp,
23 Vec from gp,
24 Curve from BRepAdaptor,
25 Shape from GeomAbs,
26 Array1OfReal from TColStd
27raises
28 OutOfRange from Standard
29
30is
31
32
33 FirstParameter (myclass; C : Curve from BRepAdaptor) returns Real;
34 --- Purpose :
35 -- Returns the parametric value of the start point of
36 -- the curve. The curve is oriented from the start point
37 -- to the end point.
38
39
40 LastParameter (myclass; C : Curve from BRepAdaptor) returns Real;
41 --- Purpose :
42 -- Returns the parametric value of the end point of
43 -- the curve. The curve is oriented from the start point
44 -- to the end point.
45
46
47 IntegrationOrder (myclass; C : Curve from BRepAdaptor) returns Integer;
48 --- Purpose :
49 -- Returns the number of Gauss points required to do
50 -- the integration with a good accuracy using the
51 -- Gauss method. For a polynomial curve of degree n
52 -- the maxima of accuracy is obtained with an order
53 -- of integration equal to 2*n-1.
54
55
56 Value (myclass; C : Curve from BRepAdaptor; U : Real) returns Pnt;
57 --- Purpose : Returns the point of parameter U on the loaded curve.
58
59
60 D1 (myclass; C : Curve from BRepAdaptor; U: Real; P: out Pnt; V1: out Vec);
61 --- Purpose :
62 -- Returns the point of parameter U and the first derivative
63 -- at this point.
64
65 NbIntervals(myclass; C : Curve from BRepAdaptor; S : Shape from GeomAbs)
66 ---Purpose: Returns the number of intervals for continuity
67 -- <S>. May be one if Continuity(me) >= <S>
68 returns Integer;
69
70 Intervals(myclass; C : Curve from BRepAdaptor;
71 T : in out Array1OfReal from TColStd;
72 S : Shape from GeomAbs)
73 ---Purpose: Stores in <T> the parameters bounding the intervals
74 -- of continuity <S>.
75 --
76 -- The array must provide enough room to accomodate
77 -- for the parameters. i.e. T.Length() > NbIntervals()
78 raises
79 OutOfRange from Standard;
80
81end EdgeTool;