0022627: Change OCCT memory management defaults
[occt.git] / src / Approx / Approx_SameParameter.cdl
1 -- File:        Approx_SameParameter.cdl
2 -- Created:     Fri Jun  2 17:16:15 1995
3 -- Author:      Xavier BENVENISTE
4 --              <xab@nonox>
5 ---Copyright:    Matra Datavision 1995
6
7 class SameParameter from Approx
8
9     ---Purpose: Approximation of a  PCurve  on a surface to  make  its
10     --          parameter be the same that the parameter of a given 3d
11     --          reference curve.
12
13 uses     
14          HSurface        from   Adaptor3d,
15          HCurve          from   Adaptor3d,
16          HCurve2d        from   Adaptor2d,
17          Surface         from   Geom,
18          Curve           from   Geom,
19          Curve           from   Geom2d,
20          BSplineCurve    from   Geom2d  
21
22 raises  OutOfRange        from Standard,
23         ConstructionError from Standard
24
25 is  
26
27     Create (C3D  :  Curve    from  Geom; 
28             C2D  :  Curve    from  Geom2d;
29             S    :  Surface  from  Geom; 
30             Tol  :  Real)   
31
32     returns  SameParameter    from  Approx 
33     ---Purpose: 
34     --  Warning: the C3D and C2D must have the same parametric domain.
35     --           
36     raises ConstructionError; 
37
38
39     Create (C3D  :  HCurve    from  Adaptor3d; 
40             C2D  :  Curve     from  Geom2d;
41             S    :  HSurface  from  Adaptor3d; 
42             Tol  :  Real)   
43
44     returns  SameParameter    from  Approx 
45     ---Purpose: 
46     --Warning: the C3D and C2D must have the same parametric domain.
47                
48     raises ConstructionError; 
49    
50
51     Create (C3D  :  HCurve    from  Adaptor3d; 
52             C2D  :  HCurve2d  from  Adaptor2d; 
53             S    :  HSurface  from  Adaptor3d; 
54             Tol  :  Real)   
55
56     returns  SameParameter    from  Approx 
57    ---Purpose: 
58     --  Warning: the C3D and C2D must have the same parametric domain.
59     --           
60     raises ConstructionError; 
61    
62
63     Build (me   : in out;
64            Tol  :  Real from Standard)
65     ---Purpose: Compute the Pcurve (internal use only).
66     is static private;
67
68
69     IsDone(me) returns Boolean from Standard;
70     ---C++: inline
71      
72     TolReached(me) returns Real from Standard;
73     ---C++: inline
74      
75      
76     IsSameParameter(me)  
77     ---C++: inline  
78
79     ---Purpose: Tells whether the original data  had already the  same
80     --          parameter up to  the tolerance :  in that case nothing
81     --          is done.
82     
83     returns  Boolean  from Standard; 
84
85
86     Curve2d(me)   
87     ---C++: inline
88
89     ---Purpose: Returns the 2D  curve that has  the same parameter  as
90     --          the  3D curve once evaluated on  the surface up to the
91     --          specified tolerance
92     returns  BSplineCurve  from  Geom2d;
93
94
95 fields  
96
97    mySameParameter  :  Boolean       from Standard;
98    myDone           :  Boolean       from Standard;
99    myTolReached     :  Real          from Standard;
100    myCurve2d        :  BSplineCurve  from Geom2d;
101    myHCurve2d       :  HCurve2d      from Adaptor2d;
102    myC3d            :  HCurve        from Adaptor3d;
103    mySurf           :  HSurface      from Adaptor3d;
104
105 end  SameParameter;