1 -- Created on: 1995-07-20
2 -- Created by: Modelistation
3 -- Copyright (c) 1995-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
24 generic class SurfaceToolGen from BRepApprox
31 SurfaceType from GeomAbs,
39 Array1OfReal from TColStd,
40 BezierSurface from Geom,
41 BSplineSurface from Geom,
42 HSurface from Adaptor3d,
43 HCurve from Adaptor3d,
49 NoSuchObject from Standard,
50 OutOfRange from Standard
54 FirstUParameter(myclass; S: TheSurface)
56 returns Real from Standard;
58 FirstVParameter(myclass; S: TheSurface)
60 returns Real from Standard;
62 LastUParameter(myclass; S: TheSurface)
64 returns Real from Standard;
66 LastVParameter(myclass; S: TheSurface)
68 returns Real from Standard;
72 NbUIntervals(myclass; S: TheSurface;
73 Sh : Shape from GeomAbs)
75 returns Integer from Standard;
77 NbVIntervals(myclass; S: TheSurface;
78 Sh : Shape from GeomAbs)
80 returns Integer from Standard;
84 UIntervals(myclass; S : TheSurface;
85 T : in out Array1OfReal from TColStd;
86 Sh : Shape from GeomAbs);
89 VIntervals(myclass; S : TheSurface;
90 T : in out Array1OfReal from TColStd;
91 Sh : Shape from GeomAbs) ;
95 UTrim(myclass; S : TheSurface;
96 First, Last, Tol : Real)
98 returns HSurface from Adaptor3d
100 OutOfRange from Standard;
101 ---Purpose: If <First> >= <Last>
103 VTrim(myclass; S : TheSurface;
104 First, Last, Tol : Real)
106 returns HSurface from Adaptor3d
108 OutOfRange from Standard;
109 ---Purpose: If <First> >= <Last>
112 IsUClosed(myclass; S: TheSurface)
114 returns Boolean from Standard;
116 IsVClosed(myclass; S: TheSurface)
118 returns Boolean from Standard;
121 IsUPeriodic(myclass; S: TheSurface)
123 returns Boolean from Standard;
125 UPeriod(myclass; S: TheSurface)
127 returns Real from Standard;
129 IsVPeriodic(myclass; S: TheSurface)
131 returns Boolean from Standard;
133 VPeriod(myclass; S: TheSurface)
135 returns Real from Standard;
139 Value(myclass; S : TheSurface;
140 u,v : Real from Standard)
144 D0(myclass; S : TheSurface;
145 u,v : Real from Standard;
146 P : out Pnt from gp);
149 D1(myclass; S : TheSurface;
150 u,v : Real from Standard;
152 D1u,D1v: out Vec from gp);
155 D2(myclass; S : TheSurface;
156 u,v : Real from Standard;
158 D1U,D1V,D2U,D2V,D2UV: out Vec from gp);
161 D3(myclass; S : TheSurface;
162 u,v : Real from Standard;
164 D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV: out Vec from gp);
167 DN(myclass; S : TheSurface;
168 u,v : Real from Standard;
169 Nu,Nv : Integer from Standard)
175 UResolution(myclass; S:TheSurface; R3d: Real from Standard)
177 returns Real from Standard;
179 VResolution(myclass; S:TheSurface; R3d: Real from Standard)
181 returns Real from Standard;
183 GetType(myclass; S: TheSurface)
185 returns SurfaceType from GeomAbs;
188 Plane(myclass; S: TheSurface)
192 Cylinder(myclass; S : TheSurface) returns Cylinder from gp
193 raises NoSuchObject from Standard;
197 Cone(myclass; S : TheSurface) returns Cone from gp
198 raises NoSuchObject from Standard;
201 Torus(myclass; S : TheSurface) returns Torus from gp
202 raises NoSuchObject from Standard;
206 Sphere(myclass; S : TheSurface) returns Sphere from gp
207 raises NoSuchObject from Standard;
210 Bezier(myclass; S : TheSurface) returns BezierSurface from Geom
211 raises NoSuchObject from Standard;
214 BSpline(myclass; S : TheSurface) returns BSplineSurface from Geom
215 raises NoSuchObject from Standard;
218 AxeOfRevolution(myclass; S: TheSurface) returns Ax1 from gp
219 raises NoSuchObject from Standard;
222 Direction(myclass; S: TheSurface) returns Dir from gp
223 raises NoSuchObject from Standard;
226 BasisCurve(myclass; S:TheSurface) returns HCurve from Adaptor3d
227 raises NoSuchObject from Standard;
231 --------------------------------------------------------------------------------
234 NbSamplesU(myclass; S : TheSurface) returns Integer from Standard;
237 NbSamplesV(myclass; S : TheSurface) returns Integer from Standard;
240 NbSamplesU(myclass; S : TheSurface; u1,u2: Real from Standard) returns Integer from Standard;
243 NbSamplesV(myclass; S : TheSurface; v1,v2: Real from Standard) returns Integer from Standard;
247 end SurfaceToolGen from BRepApprox ;