7fd59977 |
1 | -- File: BRepGProp_EdgeTool.cdl |
2 | -- Created: Tue Dec 7 10:39:08 1993 |
3 | -- Author: Modelistation |
4 | -- <model@zerox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | class EdgeTool from BRepGProp |
9 | |
10 | --- Purpose : Provides the required methods to instantiate |
11 | -- CGProps from GProp with a Curve from BRepAdaptor. |
12 | |
13 | uses Pnt from gp, |
14 | Vec from gp, |
15 | Curve from BRepAdaptor, |
16 | Shape from GeomAbs, |
17 | Array1OfReal from TColStd |
18 | raises |
19 | OutOfRange from Standard |
20 | |
21 | is |
22 | |
23 | |
24 | FirstParameter (myclass; C : Curve from BRepAdaptor) returns Real; |
25 | --- Purpose : |
26 | -- Returns the parametric value of the start point of |
27 | -- the curve. The curve is oriented from the start point |
28 | -- to the end point. |
29 | |
30 | |
31 | LastParameter (myclass; C : Curve from BRepAdaptor) returns Real; |
32 | --- Purpose : |
33 | -- Returns the parametric value of the end point of |
34 | -- the curve. The curve is oriented from the start point |
35 | -- to the end point. |
36 | |
37 | |
38 | IntegrationOrder (myclass; C : Curve from BRepAdaptor) returns Integer; |
39 | --- Purpose : |
40 | -- Returns the number of Gauss points required to do |
41 | -- the integration with a good accuracy using the |
42 | -- Gauss method. For a polynomial curve of degree n |
43 | -- the maxima of accuracy is obtained with an order |
44 | -- of integration equal to 2*n-1. |
45 | |
46 | |
47 | Value (myclass; C : Curve from BRepAdaptor; U : Real) returns Pnt; |
48 | --- Purpose : Returns the point of parameter U on the loaded curve. |
49 | |
50 | |
51 | D1 (myclass; C : Curve from BRepAdaptor; U: Real; P: out Pnt; V1: out Vec); |
52 | --- Purpose : |
53 | -- Returns the point of parameter U and the first derivative |
54 | -- at this point. |
55 | |
56 | NbIntervals(myclass; C : Curve from BRepAdaptor; S : Shape from GeomAbs) |
57 | ---Purpose: Returns the number of intervals for continuity |
58 | -- <S>. May be one if Continuity(me) >= <S> |
59 | returns Integer; |
60 | |
61 | Intervals(myclass; C : Curve from BRepAdaptor; |
62 | T : in out Array1OfReal from TColStd; |
63 | S : Shape from GeomAbs) |
64 | ---Purpose: Stores in <T> the parameters bounding the intervals |
65 | -- of continuity <S>. |
66 | -- |
67 | -- The array must provide enough room to accomodate |
68 | -- for the parameters. i.e. T.Length() > NbIntervals() |
69 | raises |
70 | OutOfRange from Standard; |
71 | |
72 | end EdgeTool; |