0024575: Exception is raised during 'checkshape' operation.
[occt.git] / src / GProp / GProp_CurveTool.cdl
CommitLineData
b311480e 1-- Created on: 1992-08-26
2-- Created by: Jean-Claude Vauthier
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
17deferred generic class CurveTool from GProp (Curve as any)
18
19 --- Purpose :
20 -- This template defines the minimum of methods required
21 -- to compute the global properties of a C1 parametric
22 -- curve in 3d space with the algorithmes of package GProp.
23 -- To compute the global properties of your curves, you
24 -- have to define your own "CurveTool" using this template.
25 --
26 -- Curve must be a bounded curve of continuity C1 defined in 3d
27 -- space.
28
29uses Pnt from gp,
30 Vec from gp
31
32is
33
34
35 FirstParameter (myclass; C : Curve) returns Real;
36 --- Purpose :
37 -- Returns the parametric value of the start point of
38 -- the curve. The curve is oriented from the start point
39 -- to the end point.
40
41
42 LastParameter (myclass; C : Curve) returns Real;
43 --- Purpose :
44 -- Returns the parametric value of the end point of
45 -- the curve. The curve is oriented from the start point
46 -- to the end point.
47
48
49 IntegrationOrder (myclass; C : Curve) returns Integer;
50 --- Purpose :
51 -- Returns the number of Gauss points required to do
52 -- the integration with a good accuracy using the
53 -- Gauss method. For a polynomial curve of degree n
54 -- the maxima of accuracy is obtained with an order
55 -- of integration equal to 2*n-1.
56
57
58 Value (myclass; C : Curve; U : Real) returns Pnt;
59 --- Purpose : Returns the point of parameter U on the loaded curve.
60
61
62 D1 (myclass; C : Curve; U: Real; P: out Pnt; V1: out Vec);
63 --- Purpose :
64 -- Returns the point of parameter U and the first derivative
65 -- at this point.
66
67
68end CurveTool;