1 -- Created on: 1995-07-20
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 generic class SurfaceToolGen from BRepApprox
24 SurfaceType from GeomAbs,
32 Array1OfReal from TColStd,
33 BezierSurface from Geom,
34 BSplineSurface from Geom,
35 HSurface from Adaptor3d,
36 HCurve from Adaptor3d,
42 NoSuchObject from Standard,
43 OutOfRange from Standard
47 FirstUParameter(myclass; S: TheSurface)
49 returns Real from Standard;
51 FirstVParameter(myclass; S: TheSurface)
53 returns Real from Standard;
55 LastUParameter(myclass; S: TheSurface)
57 returns Real from Standard;
59 LastVParameter(myclass; S: TheSurface)
61 returns Real from Standard;
65 NbUIntervals(myclass; S: TheSurface;
66 Sh : Shape from GeomAbs)
68 returns Integer from Standard;
70 NbVIntervals(myclass; S: TheSurface;
71 Sh : Shape from GeomAbs)
73 returns Integer from Standard;
77 UIntervals(myclass; S : TheSurface;
78 T : in out Array1OfReal from TColStd;
79 Sh : Shape from GeomAbs);
82 VIntervals(myclass; S : TheSurface;
83 T : in out Array1OfReal from TColStd;
84 Sh : Shape from GeomAbs) ;
88 UTrim(myclass; S : TheSurface;
89 First, Last, Tol : Real)
91 returns HSurface from Adaptor3d
93 OutOfRange from Standard;
94 ---Purpose: If <First> >= <Last>
96 VTrim(myclass; S : TheSurface;
97 First, Last, Tol : Real)
99 returns HSurface from Adaptor3d
101 OutOfRange from Standard;
102 ---Purpose: If <First> >= <Last>
105 IsUClosed(myclass; S: TheSurface)
107 returns Boolean from Standard;
109 IsVClosed(myclass; S: TheSurface)
111 returns Boolean from Standard;
114 IsUPeriodic(myclass; S: TheSurface)
116 returns Boolean from Standard;
118 UPeriod(myclass; S: TheSurface)
120 returns Real from Standard;
122 IsVPeriodic(myclass; S: TheSurface)
124 returns Boolean from Standard;
126 VPeriod(myclass; S: TheSurface)
128 returns Real from Standard;
132 Value(myclass; S : TheSurface;
133 u,v : Real from Standard)
137 D0(myclass; S : TheSurface;
138 u,v : Real from Standard;
139 P : out Pnt from gp);
142 D1(myclass; S : TheSurface;
143 u,v : Real from Standard;
145 D1u,D1v: out Vec from gp);
148 D2(myclass; S : TheSurface;
149 u,v : Real from Standard;
151 D1U,D1V,D2U,D2V,D2UV: out Vec from gp);
154 D3(myclass; S : TheSurface;
155 u,v : Real from Standard;
157 D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV: out Vec from gp);
160 DN(myclass; S : TheSurface;
161 u,v : Real from Standard;
162 Nu,Nv : Integer from Standard)
168 UResolution(myclass; S:TheSurface; R3d: Real from Standard)
170 returns Real from Standard;
172 VResolution(myclass; S:TheSurface; R3d: Real from Standard)
174 returns Real from Standard;
176 GetType(myclass; S: TheSurface)
178 returns SurfaceType from GeomAbs;
181 Plane(myclass; S: TheSurface)
185 Cylinder(myclass; S : TheSurface) returns Cylinder from gp
186 raises NoSuchObject from Standard;
190 Cone(myclass; S : TheSurface) returns Cone from gp
191 raises NoSuchObject from Standard;
194 Torus(myclass; S : TheSurface) returns Torus from gp
195 raises NoSuchObject from Standard;
199 Sphere(myclass; S : TheSurface) returns Sphere from gp
200 raises NoSuchObject from Standard;
203 Bezier(myclass; S : TheSurface) returns BezierSurface from Geom
204 raises NoSuchObject from Standard;
207 BSpline(myclass; S : TheSurface) returns BSplineSurface from Geom
208 raises NoSuchObject from Standard;
211 AxeOfRevolution(myclass; S: TheSurface) returns Ax1 from gp
212 raises NoSuchObject from Standard;
215 Direction(myclass; S: TheSurface) returns Dir from gp
216 raises NoSuchObject from Standard;
219 BasisCurve(myclass; S:TheSurface) returns HCurve from Adaptor3d
220 raises NoSuchObject from Standard;
224 --------------------------------------------------------------------------------
227 NbSamplesU(myclass; S : TheSurface) returns Integer from Standard;
230 NbSamplesV(myclass; S : TheSurface) returns Integer from Standard;
233 NbSamplesU(myclass; S : TheSurface; u1,u2: Real from Standard) returns Integer from Standard;
236 NbSamplesV(myclass; S : TheSurface; v1,v2: Real from Standard) returns Integer from Standard;
240 end SurfaceToolGen from BRepApprox ;