0024624: Lost word in license statement in source files
[occt.git] / src / BRepApprox / BRepApprox_SurfaceToolGen.lxx
CommitLineData
b311480e 1// Created on: 1995-07-20
2// Created by: Modelistation
3// Copyright (c) 1995-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include TheSurface_hxx
18#include <gp_Pnt.hxx>
19#include <gp_Vec.hxx>
20#include <gp_Pln.hxx>
21#include <gp_Cylinder.hxx>
22#include <gp_Cone.hxx>
23#include <gp_Torus.hxx>
24#include <gp_Sphere.hxx>
25#include <gp_Ax1.hxx>
26#include <gp_Dir.hxx>
27#include <Handle_Geom_BezierSurface.hxx>
28#include <Handle_Geom_BSplineSurface.hxx>
29#include <Handle_Adaptor3d_HSurface.hxx>
30#include <Handle_Adaptor3d_HCurve.hxx>
31
32
33
34inline Standard_Real BRepApprox_SurfaceToolGen::FirstUParameter(const TheSurface& Surf){ return Surf.FirstUParameter(); }
35inline Standard_Real BRepApprox_SurfaceToolGen::FirstVParameter(const TheSurface& Surf){ return Surf.FirstVParameter();}
36inline Standard_Real BRepApprox_SurfaceToolGen::LastUParameter(const TheSurface& Surf){ return Surf.LastUParameter();}
37inline Standard_Real BRepApprox_SurfaceToolGen::LastVParameter(const TheSurface& Surf){ return Surf.LastVParameter();}
38
39inline Standard_Integer BRepApprox_SurfaceToolGen::NbUIntervals(const TheSurface& Surf,
40 const GeomAbs_Shape S){
41 return Surf.NbUIntervals(S);
42}
43
44inline Standard_Integer BRepApprox_SurfaceToolGen::NbVIntervals(const TheSurface& Surf,
45 const GeomAbs_Shape S){
46 return Surf.NbVIntervals(S);
47}
48
49inline void BRepApprox_SurfaceToolGen::UIntervals(const TheSurface& Surf,
50 TColStd_Array1OfReal& Tab,
51 const GeomAbs_Shape S){
52 Surf.UIntervals(Tab,S);
53}
54
55inline void BRepApprox_SurfaceToolGen::VIntervals(const TheSurface& Surf,
56 TColStd_Array1OfReal& Tab,
57 const GeomAbs_Shape S){
58 Surf.VIntervals(Tab,S);
59}
60
61
62inline Handle_Adaptor3d_HSurface BRepApprox_SurfaceToolGen::UTrim(const TheSurface& Surf,
63 const Standard_Real F,
64 const Standard_Real L,
65 const Standard_Real Tol) {
66 return Surf.UTrim(F,L,Tol);
67}
68
69inline Handle_Adaptor3d_HSurface BRepApprox_SurfaceToolGen::VTrim(const TheSurface& Surf,
70 const Standard_Real F,
71 const Standard_Real L,
72 const Standard_Real Tol) {
73 return Surf.VTrim(F,L,Tol);
74}
75
76
77
78
79inline Standard_Boolean BRepApprox_SurfaceToolGen::IsUClosed(const TheSurface& S)
80{
81 return S.IsUClosed();
82}
83
84inline Standard_Boolean BRepApprox_SurfaceToolGen::IsVClosed(const TheSurface& S)
85{
86 return S.IsVClosed();
87}
88
89inline Standard_Boolean BRepApprox_SurfaceToolGen::IsUPeriodic(const TheSurface& S)
90{
91 return S.IsUPeriodic();
92}
93
94inline Standard_Real BRepApprox_SurfaceToolGen::UPeriod(const TheSurface& S)
95{
96 return S.UPeriod();
97}
98
99inline Standard_Boolean BRepApprox_SurfaceToolGen::IsVPeriodic(const TheSurface& S)
100{
101 return S.IsVPeriodic();
102}
103
104inline Standard_Real BRepApprox_SurfaceToolGen::VPeriod(const TheSurface& S)
105{
106 return S.VPeriod();
107}
108
109inline gp_Pnt BRepApprox_SurfaceToolGen::Value(const TheSurface& S,
110 const Standard_Real U,
111 const Standard_Real V )
112{
113 return S.Value(U,V);
114}
115
116inline void BRepApprox_SurfaceToolGen::D0(const TheSurface& S,
117 const Standard_Real U,
118 const Standard_Real V,
119 gp_Pnt& P)
120{
121 S.D0(U,V,P);
122}
123
124inline void BRepApprox_SurfaceToolGen::D1(const TheSurface& S,
125 const Standard_Real U,
126 const Standard_Real V,
127 gp_Pnt& P,
128 gp_Vec& D1U,
129 gp_Vec& D1V)
130{
131 S.D1(U,V,P,D1U,D1V);
132}
133
134inline void BRepApprox_SurfaceToolGen::D2(const TheSurface& S,
135 const Standard_Real U,
136 const Standard_Real V,
137 gp_Pnt& P,
138 gp_Vec& D1U,
139 gp_Vec& D1V,
140 gp_Vec& D2U,
141 gp_Vec& D2V,
142 gp_Vec& D2UV)
143{
144 S.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
145}
146
147inline void BRepApprox_SurfaceToolGen::D3(const TheSurface& S,
148 const Standard_Real U,
149 const Standard_Real V,
150 gp_Pnt& P,
151 gp_Vec& D1U,
152 gp_Vec& D1V,
153 gp_Vec& D2U,
154 gp_Vec& D2V,
155 gp_Vec& D2UV,
156 gp_Vec& D3U,
157 gp_Vec& D3V,
158 gp_Vec& D3UUV,
159 gp_Vec& D3UVV)
160{
161 S.D3(U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV);
162}
163
164inline gp_Vec BRepApprox_SurfaceToolGen::DN(const TheSurface& S,
165 const Standard_Real U,
166 const Standard_Real V,
167 const Standard_Integer Nu,
168 const Standard_Integer Nv)
169{
170 return S.DN(U,V,Nu,Nv);
171}
172
173inline Standard_Real BRepApprox_SurfaceToolGen::UResolution(const TheSurface& S,
174 const Standard_Real R3d)
175{
176 return S.UResolution(R3d);
177}
178
179inline Standard_Real BRepApprox_SurfaceToolGen::VResolution(const TheSurface& S,
180 const Standard_Real R3d)
181{
182 return S.VResolution(R3d);
183}
184
185inline GeomAbs_SurfaceType BRepApprox_SurfaceToolGen::GetType(const TheSurface& S )
186{
187 return S.GetType();
188}
189
190inline gp_Pln BRepApprox_SurfaceToolGen::Plane(const TheSurface& S)
191{
192 return S.Plane();
193}
194
195inline gp_Cylinder BRepApprox_SurfaceToolGen::Cylinder(const TheSurface& S)
196{
197 return S.Cylinder();
198}
199
200inline gp_Cone BRepApprox_SurfaceToolGen::Cone(const TheSurface& S)
201{
202 return S.Cone();
203}
204
205inline gp_Sphere BRepApprox_SurfaceToolGen::Sphere(const TheSurface& S)
206{
207 return S.Sphere();
208}
209
210inline gp_Torus BRepApprox_SurfaceToolGen::Torus(const TheSurface& S)
211{
212 return S.Torus();
213}
214
215
216inline Handle(Geom_BezierSurface) BRepApprox_SurfaceToolGen::Bezier(const TheSurface& S) {
217 return(S.Bezier());
218}
219
220inline Handle(Geom_BSplineSurface) BRepApprox_SurfaceToolGen::BSpline(const TheSurface& S) {
221 return(S.BSpline());
222}
223
224
225inline gp_Ax1 BRepApprox_SurfaceToolGen::AxeOfRevolution(const TheSurface& S) {
226 return(S.AxeOfRevolution());
227}
228
229inline gp_Dir BRepApprox_SurfaceToolGen::Direction(const TheSurface& S) {
230 return(S.Direction());
231}
232
233inline Handle(Adaptor3d_HCurve) BRepApprox_SurfaceToolGen::BasisCurve(const TheSurface& S) {
234 return(S.BasisCurve());
235}