1 -- Created on: 1992-11-27
2 -- Created by: Isabelle GRIGNON
3 -- Copyright (c) 1992-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 under
9 -- the terms of the GNU Lesser General Public License 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 deferred generic class FaceTool from GProp( Arc as any )
19 ---Purpose: This template class defines the minimum of methods required
20 -- to compute the global properties of Faces with the
21 -- algorithms of the package GProp.
22 -- To compute the global properties of a Face, in is necessary
23 -- to define own "FaceTool" and to implement all the methods
24 -- defined in this template. Note that it is not necessary to
25 -- inherit this template class.
32 HArray1OfReal from TColStd
36 UIntegrationOrder (me) returns Integer;
37 ---Purpose: Returns the number of points required to do the
38 -- integration in the U parametric direction.
40 Bounds (me; U1, U2, V1, V2 : out Real);
41 ---Purpose: Returns the parametric bounds of the Face <S>.
43 Normal (me; U, V : Real; P : out Pnt; VNor: out Vec);
44 ---Purpose: Computes the point of parameter U, V on the Face <S> and
45 -- the normal to the face at this point.
47 Load(me:in out; A : Arc);
48 ---Purpose: Loading the boundary arc.
50 Load(me : in out; IsFirstParam: Boolean from Standard;
51 theIsoType : IsoType from GeomAbs);
52 ---Purpose: Loading the boundary arc. This arc is either a top, bottom,
53 -- left or right bound of a UV rectangle in which the
54 -- parameters of surface are defined.
55 -- If IsFirstParam is equal to Standard_True, the face is
56 -- initialized by either left of bottom bound. Otherwise it is
57 -- initialized by the top or right one.
58 -- If theIsoType is equal to GeomAbs_IsoU, the face is
59 -- initialized with either left or right bound. Otherwise -
60 -- with either top or bottom one.
62 FirstParameter (me) returns Real ;
63 ---Purpose: Returns the parametric value of the start point of
64 -- the current arc of curve.
66 LastParameter (me) returns Real ;
67 ---Purpose: Returns the parametric value of the end point of
68 -- the current arc of curve.
70 IntegrationOrder (me) returns Integer;
71 ---Purpose: Returns the number of points required to do the
72 -- integration along the parameter of curve.
74 D12d (me; U: Real; P: out Pnt2d; V1: out Vec2d);
75 ---Purpose: Returns the point of parameter U and the first derivative
76 -- at this point of a boundary curve.
78 GetUKnots(me; theUMin : Real from Standard;
79 theUMax : Real from Standard;
80 theUKnots: in out HArray1OfReal from TColStd);
81 ---Purpose: Returns an array of U knots of the face. The first and last
82 -- elements of the array will be theUMin and theUMax. The
83 -- middle elements will be the U Knots of the face greater
84 -- then theUMin and lower then theUMax in increasing order.
86 GetTKnots(me; theTMin : Real from Standard;
87 theTMax : Real from Standard;
88 theTKnots: in out HArray1OfReal from TColStd);
89 ---Purpose: Returns an array of combination of T knots of the arc and
90 -- V knots of the face. The first and last elements of the
91 -- array will be theTMin and theTMax. The middle elements will
92 -- be the Knots of the arc and the values of parameters of
93 -- arc on which the value points have V coordinates close to V
94 -- knots of face. All the parameter will be greater then
95 -- theTMin and lower then theTMax in increasing order.