0023024: Update headers of OCCT files
[occt.git] / src / BRepMesh / BRepMesh_GeomTool.cdl
1 -- Created on: 1993-09-29
2 -- Created by: Isabelle GRIGNON
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21
22
23
24 class GeomTool from BRepMesh
25         ---Purpose: 
26
27 uses 
28      Pnt                  from gp,
29      Vec                  from gp,
30      Dir                  from gp,
31      Pnt2d                from gp,
32      IsoType              from GeomAbs,
33      TangentialDeflection from GCPnts,
34      Curve                from BRepAdaptor,
35      HSurface             from BRepAdaptor
36      
37
38
39 is
40
41     Create (C : in out Curve from BRepAdaptor;
42             Ufirst,Ulast,AngDefl, Deflection : Real;
43             nbpointsmin: Integer = 2)
44         returns GeomTool;
45     
46     Create (S        : HSurface from BRepAdaptor;
47             ParamIso : Real;
48             Type     : IsoType  from GeomAbs;
49             Ufirst,Ulast,AngDefl,Deflection : Real;
50             nbpointsmin: Integer = 2) returns GeomTool;
51
52     AddPoint(me : in out; thePnt : in Pnt from gp;
53                           theParam : in Real;
54                           theIsReplace : in Boolean = Standard_True)
55     returns Integer from Standard;
56     ---Purpose: Add point to already calculated points (or replace existing)
57     --          Returns index of new added point
58     --           or founded with parametric tolerance (replaced if theIsReplace is true)
59             
60     NbPoints(me) returns Integer from Standard;
61     
62     Value(me; IsoParam : Real ; Index : Integer ; 
63           W : out Real; P : out Pnt from gp; UV : out Pnt2d from gp);
64               
65     Value(me;C : Curve from BRepAdaptor;
66              S : HSurface from BRepAdaptor;
67              Index : Integer from Standard; 
68              W : out Real; P : out Pnt from gp; UV : out Pnt2d from gp);    
69         
70     D0(myclass; F : HSurface  from BRepAdaptor;U,V : Real; P : out Pnt);
71         
72     Normal(myclass; F : HSurface from BRepAdaptor;U,V : Real ; P : out Pnt from gp; 
73                                            Nor : out  Dir from gp)
74     returns Boolean from Standard;
75     ---Purpose: return false if the normal can not be computed 
76
77 fields
78
79 pnts                : TangentialDeflection from GCPnts;
80 parametric          : IsoType           from GeomAbs;
81
82 end GeomTool;