1 -- File: BRepApprox_SurfaceToolGen.cdl
2 -- Created: Thu Jul 20 15:40:02 1995
3 -- Author: Modelistation
5 ---Copyright: Matra Datavision 1995
9 generic class SurfaceToolGen from BRepApprox
16 SurfaceType from GeomAbs,
24 Array1OfReal from TColStd,
25 BezierSurface from Geom,
26 BSplineSurface from Geom,
27 HSurface from Adaptor3d,
28 HCurve from Adaptor3d,
34 NoSuchObject from Standard,
35 OutOfRange from Standard
39 FirstUParameter(myclass; S: TheSurface)
41 returns Real from Standard;
43 FirstVParameter(myclass; S: TheSurface)
45 returns Real from Standard;
47 LastUParameter(myclass; S: TheSurface)
49 returns Real from Standard;
51 LastVParameter(myclass; S: TheSurface)
53 returns Real from Standard;
57 NbUIntervals(myclass; S: TheSurface;
58 Sh : Shape from GeomAbs)
60 returns Integer from Standard;
62 NbVIntervals(myclass; S: TheSurface;
63 Sh : Shape from GeomAbs)
65 returns Integer from Standard;
69 UIntervals(myclass; S : TheSurface;
70 T : in out Array1OfReal from TColStd;
71 Sh : Shape from GeomAbs);
74 VIntervals(myclass; S : TheSurface;
75 T : in out Array1OfReal from TColStd;
76 Sh : Shape from GeomAbs) ;
80 UTrim(myclass; S : TheSurface;
81 First, Last, Tol : Real)
83 returns HSurface from Adaptor3d
85 OutOfRange from Standard;
86 ---Purpose: If <First> >= <Last>
88 VTrim(myclass; S : TheSurface;
89 First, Last, Tol : Real)
91 returns HSurface from Adaptor3d
93 OutOfRange from Standard;
94 ---Purpose: If <First> >= <Last>
97 IsUClosed(myclass; S: TheSurface)
99 returns Boolean from Standard;
101 IsVClosed(myclass; S: TheSurface)
103 returns Boolean from Standard;
106 IsUPeriodic(myclass; S: TheSurface)
108 returns Boolean from Standard;
110 UPeriod(myclass; S: TheSurface)
112 returns Real from Standard;
114 IsVPeriodic(myclass; S: TheSurface)
116 returns Boolean from Standard;
118 VPeriod(myclass; S: TheSurface)
120 returns Real from Standard;
124 Value(myclass; S : TheSurface;
125 u,v : Real from Standard)
129 D0(myclass; S : TheSurface;
130 u,v : Real from Standard;
131 P : out Pnt from gp);
134 D1(myclass; S : TheSurface;
135 u,v : Real from Standard;
137 D1u,D1v: out Vec from gp);
140 D2(myclass; S : TheSurface;
141 u,v : Real from Standard;
143 D1U,D1V,D2U,D2V,D2UV: out Vec from gp);
146 D3(myclass; S : TheSurface;
147 u,v : Real from Standard;
149 D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV: out Vec from gp);
152 DN(myclass; S : TheSurface;
153 u,v : Real from Standard;
154 Nu,Nv : Integer from Standard)
160 UResolution(myclass; S:TheSurface; R3d: Real from Standard)
162 returns Real from Standard;
164 VResolution(myclass; S:TheSurface; R3d: Real from Standard)
166 returns Real from Standard;
168 GetType(myclass; S: TheSurface)
170 returns SurfaceType from GeomAbs;
173 Plane(myclass; S: TheSurface)
177 Cylinder(myclass; S : TheSurface) returns Cylinder from gp
178 raises NoSuchObject from Standard;
182 Cone(myclass; S : TheSurface) returns Cone from gp
183 raises NoSuchObject from Standard;
186 Torus(myclass; S : TheSurface) returns Torus from gp
187 raises NoSuchObject from Standard;
191 Sphere(myclass; S : TheSurface) returns Sphere from gp
192 raises NoSuchObject from Standard;
195 Bezier(myclass; S : TheSurface) returns BezierSurface from Geom
196 raises NoSuchObject from Standard;
199 BSpline(myclass; S : TheSurface) returns BSplineSurface from Geom
200 raises NoSuchObject from Standard;
203 AxeOfRevolution(myclass; S: TheSurface) returns Ax1 from gp
204 raises NoSuchObject from Standard;
207 Direction(myclass; S: TheSurface) returns Dir from gp
208 raises NoSuchObject from Standard;
211 BasisCurve(myclass; S:TheSurface) returns HCurve from Adaptor3d
212 raises NoSuchObject from Standard;
216 --------------------------------------------------------------------------------
219 NbSamplesU(myclass; S : TheSurface) returns Integer from Standard;
222 NbSamplesV(myclass; S : TheSurface) returns Integer from Standard;
225 NbSamplesU(myclass; S : TheSurface; u1,u2: Real from Standard) returns Integer from Standard;
228 NbSamplesV(myclass; S : TheSurface; v1,v2: Real from Standard) returns Integer from Standard;
232 end SurfaceToolGen from BRepApprox ;