1 -- File: Approx_Curve3d.cdl
2 -- Created: Thu Aug 20 18:31:06 1998
3 -- Author: Philippe MANGIN
5 ---Copyright: Matra Datavision 1998
7 class Curve3d from Approx
10 HCurve from Adaptor3d,
11 BSplineCurve from Geom,
13 OutOfRange from Standard
15 raises OutOfRange from Standard,
16 ConstructionError from Standard
20 Create(Curve: HCurve from Adaptor3d;
22 Order: Shape from GeomAbs;
24 MaxDegree: Integer) returns Curve3d from Approx;
25 ---Purpose: Approximation of a curve with respect of the
26 -- requiered tolerance Tol3D.
28 Curve(me) returns BSplineCurve from Geom;
30 IsDone(me) returns Boolean from Standard;
31 ---Purpose: returns Standard_True if the approximation has
32 -- been done within requiered tolerance
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
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)
43 Dump(me; o: in out OStream);
44 ---Purpose: Print on the stream o information about the object
47 myIsDone : Boolean from Standard;
48 myHasResult : Boolean from Standard;
49 myBSplCurve : BSplineCurve from Geom;
50 myMaxError : Real from Standard;