Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Approx / Approx_Curve3d.cdl
1 -- File:        Approx_Curve3d.cdl
2 -- Created:     Thu Aug 20 18:31:06 1998
3 -- Author:      Philippe MANGIN
4 --              <pmn@sgi29>
5 ---Copyright:    Matra Datavision 1998
6
7 class  Curve3d  from  Approx 
8
9 uses
10     HCurve         from  Adaptor3d, 
11     BSplineCurve   from  Geom, 
12     Shape          from  GeomAbs,
13     OutOfRange     from  Standard          
14     
15 raises  OutOfRange   from Standard, 
16         ConstructionError  from  Standard
17
18 is
19  
20     Create(Curve:  HCurve  from Adaptor3d; 
21             Tol3d:  Real; 
22             Order:  Shape  from  GeomAbs; 
23             MaxSegments:  Integer; 
24             MaxDegree:  Integer)  returns  Curve3d  from  Approx; 
25         ---Purpose: Approximation  of  a  curve  with respect of the  
26     --          requiered tolerance Tol3D. 
27      
28     Curve(me)  returns  BSplineCurve  from  Geom; 
29      
30     IsDone(me)  returns  Boolean  from  Standard; 
31     ---Purpose:  returns  Standard_True  if  the  approximation  has   
32     -- been  done  within  requiered tolerance 
33      
34     HasResult(me) returns Boolean; 
35     ---Purpose: returns  Standard_True if the approximation did come out 
36     -- with a result that  is not NECESSARELY within the required 
37     -- tolerance
38
39     MaxError(me)  returns  Real  from  Standard; 
40     ---Purpose:  returns  the  Maximum  Error  (>0 when an approximation 
41     --  has  been  done, 0  if  no  approximation) 
42      
43     Dump(me;  o:  in  out  OStream); 
44     ---Purpose:  Print on the stream  o  information about the object
45
46 fields
47     myIsDone    : Boolean         from  Standard; 
48     myHasResult : Boolean         from  Standard;     
49     myBSplCurve : BSplineCurve    from  Geom; 
50     myMaxError  : Real            from  Standard; 
51     
52 end Curve3d;