1 -- Created on: 1993-07-02
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1993-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.
23 class HSurfaceTool from Adaptor3d
28 SurfaceType from GeomAbs,
36 Array1OfReal from TColStd,
37 BezierSurface from Geom,
38 BSplineSurface from Geom,
39 HSurface from Adaptor3d,
40 HCurve from Adaptor3d,
46 NoSuchObject from Standard,
47 OutOfRange from Standard
51 FirstUParameter(myclass; S: HSurface from Adaptor3d)
53 returns Real from Standard;
55 FirstVParameter(myclass; S: HSurface from Adaptor3d)
57 returns Real from Standard;
59 LastUParameter(myclass; S: HSurface from Adaptor3d)
61 returns Real from Standard;
63 LastVParameter(myclass; S: HSurface from Adaptor3d)
65 returns Real from Standard;
69 NbUIntervals(myclass; S: HSurface from Adaptor3d;
70 Sh : Shape from GeomAbs)
72 returns Integer from Standard;
74 NbVIntervals(myclass; S: HSurface from Adaptor3d;
75 Sh : Shape from GeomAbs)
77 returns Integer from Standard;
81 UIntervals(myclass; S : HSurface from Adaptor3d;
82 T : in out Array1OfReal from TColStd;
83 Sh : Shape from GeomAbs);
86 VIntervals(myclass; S : HSurface from Adaptor3d;
87 T : in out Array1OfReal from TColStd;
88 Sh : Shape from GeomAbs) ;
92 UTrim(myclass; S : HSurface from Adaptor3d;
93 First, Last, Tol : Real)
95 returns HSurface from Adaptor3d
97 OutOfRange from Standard;
98 ---Purpose: If <First> >= <Last>
100 VTrim(myclass; S : HSurface from Adaptor3d;
101 First, Last, Tol : Real)
103 returns HSurface from Adaptor3d
105 OutOfRange from Standard;
106 ---Purpose: If <First> >= <Last>
109 IsUClosed(myclass; S: HSurface from Adaptor3d)
111 returns Boolean from Standard;
113 IsVClosed(myclass; S: HSurface from Adaptor3d)
115 returns Boolean from Standard;
118 IsUPeriodic(myclass; S: HSurface from Adaptor3d)
120 returns Boolean from Standard;
122 UPeriod(myclass; S: HSurface from Adaptor3d)
124 returns Real from Standard;
126 IsVPeriodic(myclass; S: HSurface from Adaptor3d)
128 returns Boolean from Standard;
130 VPeriod(myclass; S: HSurface from Adaptor3d)
132 returns Real from Standard;
136 Value(myclass; S : HSurface from Adaptor3d;
137 u,v : Real from Standard)
141 D0(myclass; S : HSurface from Adaptor3d;
142 u,v : Real from Standard;
143 P : out Pnt from gp);
146 D1(myclass; S : HSurface from Adaptor3d;
147 u,v : Real from Standard;
149 D1u,D1v: out Vec from gp);
152 D2(myclass; S : HSurface from Adaptor3d;
153 u,v : Real from Standard;
155 D1U,D1V,D2U,D2V,D2UV: out Vec from gp);
158 D3(myclass; S : HSurface from Adaptor3d;
159 u,v : Real from Standard;
161 D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV: out Vec from gp);
164 DN(myclass; S : HSurface from Adaptor3d;
165 u,v : Real from Standard;
166 Nu,Nv : Integer from Standard)
172 UResolution(myclass; S:HSurface from Adaptor3d; R3d: Real from Standard)
174 returns Real from Standard;
176 VResolution(myclass; S:HSurface from Adaptor3d; R3d: Real from Standard)
178 returns Real from Standard;
180 GetType(myclass; S: HSurface from Adaptor3d)
182 returns SurfaceType from GeomAbs;
185 Plane(myclass; S: HSurface from Adaptor3d)
189 Cylinder(myclass; S : HSurface from Adaptor3d) returns Cylinder from gp
190 raises NoSuchObject from Standard;
194 Cone(myclass; S : HSurface from Adaptor3d) returns Cone from gp
195 raises NoSuchObject from Standard;
198 Torus(myclass; S : HSurface from Adaptor3d) returns Torus from gp
199 raises NoSuchObject from Standard;
203 Sphere(myclass; S : HSurface from Adaptor3d) returns Sphere from gp
204 raises NoSuchObject from Standard;
207 Bezier(myclass; S : HSurface from Adaptor3d) returns BezierSurface from Geom
208 raises NoSuchObject from Standard;
211 BSpline(myclass; S : HSurface from Adaptor3d) returns BSplineSurface from Geom
212 raises NoSuchObject from Standard;
215 AxeOfRevolution(myclass; S: HSurface from Adaptor3d) returns Ax1 from gp
216 raises NoSuchObject from Standard;
219 Direction(myclass; S: HSurface from Adaptor3d) returns Dir from gp
220 raises NoSuchObject from Standard;
223 BasisCurve(myclass; S:HSurface from Adaptor3d) returns HCurve from Adaptor3d
224 raises NoSuchObject from Standard;
227 BasisSurface(myclass; S:HSurface from Adaptor3d) returns HSurface from Adaptor3d
228 raises NoSuchObject from Standard;
231 OffsetValue(myclass; S:HSurface from Adaptor3d) returns Real from Standard
232 raises NoSuchObject from Standard;
236 --------------------------------------------------------------------------------
239 NbSamplesU(myclass; S : HSurface from Adaptor3d) returns Integer from Standard;
242 NbSamplesV(myclass; S : HSurface from Adaptor3d) returns Integer from Standard;
245 NbSamplesU(myclass; S : HSurface from Adaptor3d; u1,u2: Real from Standard) returns Integer from Standard;
248 NbSamplesV(myclass; S : HSurface from Adaptor3d; v1,v2: Real from Standard) returns Integer from Standard;