Warning, /include/opencascade/BRepApprox_SurfaceTool.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1995-07-20
0002 // Created by: Modelistation
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <gp_Pnt.hxx>
0018 #include <gp_Vec.hxx>
0019 #include <gp_Pln.hxx>
0020 #include <gp_Cylinder.hxx>
0021 #include <gp_Cone.hxx>
0022 #include <gp_Torus.hxx>
0023 #include <gp_Sphere.hxx>
0024 #include <gp_Ax1.hxx>
0025 #include <gp_Dir.hxx>
0026 #include <Geom_BezierSurface.hxx>
0027 #include <Geom_BSplineSurface.hxx>
0028 #include <Adaptor3d_Surface.hxx>
0029 #include <Adaptor3d_Curve.hxx>
0030
0031 inline double BRepApprox_SurfaceTool::FirstUParameter(const BRepAdaptor_Surface& Surf)
0032 {
0033 return Surf.FirstUParameter();
0034 }
0035
0036 inline double BRepApprox_SurfaceTool::FirstVParameter(const BRepAdaptor_Surface& Surf)
0037 {
0038 return Surf.FirstVParameter();
0039 }
0040
0041 inline double BRepApprox_SurfaceTool::LastUParameter(const BRepAdaptor_Surface& Surf)
0042 {
0043 return Surf.LastUParameter();
0044 }
0045
0046 inline double BRepApprox_SurfaceTool::LastVParameter(const BRepAdaptor_Surface& Surf)
0047 {
0048 return Surf.LastVParameter();
0049 }
0050
0051 inline int BRepApprox_SurfaceTool::NbUIntervals(const BRepAdaptor_Surface& Surf,
0052 const GeomAbs_Shape S)
0053 {
0054 return Surf.NbUIntervals(S);
0055 }
0056
0057 inline int BRepApprox_SurfaceTool::NbVIntervals(const BRepAdaptor_Surface& Surf,
0058 const GeomAbs_Shape S)
0059 {
0060 return Surf.NbVIntervals(S);
0061 }
0062
0063 inline void BRepApprox_SurfaceTool::UIntervals(const BRepAdaptor_Surface& Surf,
0064 NCollection_Array1<double>& Tab,
0065 const GeomAbs_Shape S)
0066 {
0067 Surf.UIntervals(Tab, S);
0068 }
0069
0070 inline void BRepApprox_SurfaceTool::VIntervals(const BRepAdaptor_Surface& Surf,
0071 NCollection_Array1<double>& Tab,
0072 const GeomAbs_Shape S)
0073 {
0074 Surf.VIntervals(Tab, S);
0075 }
0076
0077 inline occ::handle<Adaptor3d_Surface> BRepApprox_SurfaceTool::UTrim(const BRepAdaptor_Surface& Surf,
0078 const double F,
0079 const double L,
0080 const double Tol)
0081 {
0082 return Surf.UTrim(F, L, Tol);
0083 }
0084
0085 inline occ::handle<Adaptor3d_Surface> BRepApprox_SurfaceTool::VTrim(const BRepAdaptor_Surface& Surf,
0086 const double F,
0087 const double L,
0088 const double Tol)
0089 {
0090 return Surf.VTrim(F, L, Tol);
0091 }
0092
0093 inline bool BRepApprox_SurfaceTool::IsUClosed(const BRepAdaptor_Surface& S)
0094 {
0095 return S.IsUClosed();
0096 }
0097
0098 inline bool BRepApprox_SurfaceTool::IsVClosed(const BRepAdaptor_Surface& S)
0099 {
0100 return S.IsVClosed();
0101 }
0102
0103 inline bool BRepApprox_SurfaceTool::IsUPeriodic(const BRepAdaptor_Surface& S)
0104 {
0105 return S.IsUPeriodic();
0106 }
0107
0108 inline double BRepApprox_SurfaceTool::UPeriod(const BRepAdaptor_Surface& S)
0109 {
0110 return S.UPeriod();
0111 }
0112
0113 inline bool BRepApprox_SurfaceTool::IsVPeriodic(const BRepAdaptor_Surface& S)
0114 {
0115 return S.IsVPeriodic();
0116 }
0117
0118 inline double BRepApprox_SurfaceTool::VPeriod(const BRepAdaptor_Surface& S)
0119 {
0120 return S.VPeriod();
0121 }
0122
0123 inline gp_Pnt BRepApprox_SurfaceTool::Value(const BRepAdaptor_Surface& S,
0124 const double U,
0125 const double V)
0126 {
0127 return S.Value(U, V);
0128 }
0129
0130 inline void BRepApprox_SurfaceTool::D0(const BRepAdaptor_Surface& S,
0131 const double U,
0132 const double V,
0133 gp_Pnt& P)
0134 {
0135 S.D0(U, V, P);
0136 }
0137
0138 inline void BRepApprox_SurfaceTool::D1(const BRepAdaptor_Surface& S,
0139 const double U,
0140 const double V,
0141 gp_Pnt& P,
0142 gp_Vec& D1U,
0143 gp_Vec& D1V)
0144 {
0145 S.D1(U, V, P, D1U, D1V);
0146 }
0147
0148 inline void BRepApprox_SurfaceTool::D2(const BRepAdaptor_Surface& S,
0149 const double U,
0150 const double V,
0151 gp_Pnt& P,
0152 gp_Vec& D1U,
0153 gp_Vec& D1V,
0154 gp_Vec& D2U,
0155 gp_Vec& D2V,
0156 gp_Vec& D2UV)
0157 {
0158 S.D2(U, V, P, D1U, D1V, D2U, D2V, D2UV);
0159 }
0160
0161 inline void BRepApprox_SurfaceTool::D3(const BRepAdaptor_Surface& S,
0162 const double U,
0163 const double V,
0164 gp_Pnt& P,
0165 gp_Vec& D1U,
0166 gp_Vec& D1V,
0167 gp_Vec& D2U,
0168 gp_Vec& D2V,
0169 gp_Vec& D2UV,
0170 gp_Vec& D3U,
0171 gp_Vec& D3V,
0172 gp_Vec& D3UUV,
0173 gp_Vec& D3UVV)
0174 {
0175 S.D3(U, V, P, D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV);
0176 }
0177
0178 inline gp_Vec BRepApprox_SurfaceTool::DN(const BRepAdaptor_Surface& S,
0179 const double U,
0180 const double V,
0181 const int Nu,
0182 const int Nv)
0183 {
0184 return S.DN(U, V, Nu, Nv);
0185 }
0186
0187 inline double BRepApprox_SurfaceTool::UResolution(const BRepAdaptor_Surface& S, const double R3d)
0188 {
0189 return S.UResolution(R3d);
0190 }
0191
0192 inline double BRepApprox_SurfaceTool::VResolution(const BRepAdaptor_Surface& S, const double R3d)
0193 {
0194 return S.VResolution(R3d);
0195 }
0196
0197 inline GeomAbs_SurfaceType BRepApprox_SurfaceTool::GetType(const BRepAdaptor_Surface& S)
0198 {
0199 return S.GetType();
0200 }
0201
0202 inline gp_Pln BRepApprox_SurfaceTool::Plane(const BRepAdaptor_Surface& S)
0203 {
0204 return S.Plane();
0205 }
0206
0207 inline gp_Cylinder BRepApprox_SurfaceTool::Cylinder(const BRepAdaptor_Surface& S)
0208 {
0209 return S.Cylinder();
0210 }
0211
0212 inline gp_Cone BRepApprox_SurfaceTool::Cone(const BRepAdaptor_Surface& S)
0213 {
0214 return S.Cone();
0215 }
0216
0217 inline gp_Sphere BRepApprox_SurfaceTool::Sphere(const BRepAdaptor_Surface& S)
0218 {
0219 return S.Sphere();
0220 }
0221
0222 inline gp_Torus BRepApprox_SurfaceTool::Torus(const BRepAdaptor_Surface& S)
0223 {
0224 return S.Torus();
0225 }
0226
0227 inline occ::handle<Geom_BezierSurface> BRepApprox_SurfaceTool::Bezier(const BRepAdaptor_Surface& S)
0228 {
0229 return (S.Bezier());
0230 }
0231
0232 inline occ::handle<Geom_BSplineSurface> BRepApprox_SurfaceTool::BSpline(
0233 const BRepAdaptor_Surface& S)
0234 {
0235 return (S.BSpline());
0236 }
0237
0238 inline gp_Ax1 BRepApprox_SurfaceTool::AxeOfRevolution(const BRepAdaptor_Surface& S)
0239 {
0240 return (S.AxeOfRevolution());
0241 }
0242
0243 inline gp_Dir BRepApprox_SurfaceTool::Direction(const BRepAdaptor_Surface& S)
0244 {
0245 return (S.Direction());
0246 }
0247
0248 inline occ::handle<Adaptor3d_Curve> BRepApprox_SurfaceTool::BasisCurve(const BRepAdaptor_Surface& S)
0249 {
0250 return (S.BasisCurve());
0251 }