Back to home page

EIC code displayed by LXR

 
 

    


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 Standard_Real BRepApprox_SurfaceTool::FirstUParameter(const BRepAdaptor_Surface& Surf)
0032 {
0033   return Surf.FirstUParameter();
0034 }
0035 
0036 inline Standard_Real BRepApprox_SurfaceTool::FirstVParameter(const BRepAdaptor_Surface& Surf)
0037 {
0038   return Surf.FirstVParameter();
0039 }
0040 
0041 inline Standard_Real BRepApprox_SurfaceTool::LastUParameter(const BRepAdaptor_Surface& Surf)
0042 {
0043   return Surf.LastUParameter();
0044 }
0045 
0046 inline Standard_Real BRepApprox_SurfaceTool::LastVParameter(const BRepAdaptor_Surface& Surf)
0047 {
0048   return Surf.LastVParameter();
0049 }
0050 
0051 inline Standard_Integer BRepApprox_SurfaceTool::NbUIntervals(const BRepAdaptor_Surface& Surf,
0052                                                              const GeomAbs_Shape        S)
0053 {
0054   return Surf.NbUIntervals(S);
0055 }
0056 
0057 inline Standard_Integer 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                                                TColStd_Array1OfReal&      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                                                TColStd_Array1OfReal&      Tab,
0072                                                const GeomAbs_Shape        S)
0073 {
0074   Surf.VIntervals(Tab, S);
0075 }
0076 
0077 inline Handle(Adaptor3d_Surface) BRepApprox_SurfaceTool::UTrim(const BRepAdaptor_Surface& Surf,
0078                                                                const Standard_Real        F,
0079                                                                const Standard_Real        L,
0080                                                                const Standard_Real        Tol)
0081 {
0082   return Surf.UTrim(F, L, Tol);
0083 }
0084 
0085 inline Handle(Adaptor3d_Surface) BRepApprox_SurfaceTool::VTrim(const BRepAdaptor_Surface& Surf,
0086                                                                const Standard_Real        F,
0087                                                                const Standard_Real        L,
0088                                                                const Standard_Real        Tol)
0089 {
0090   return Surf.VTrim(F, L, Tol);
0091 }
0092 
0093 inline Standard_Boolean BRepApprox_SurfaceTool::IsUClosed(const BRepAdaptor_Surface& S)
0094 {
0095   return S.IsUClosed();
0096 }
0097 
0098 inline Standard_Boolean BRepApprox_SurfaceTool::IsVClosed(const BRepAdaptor_Surface& S)
0099 {
0100   return S.IsVClosed();
0101 }
0102 
0103 inline Standard_Boolean BRepApprox_SurfaceTool::IsUPeriodic(const BRepAdaptor_Surface& S)
0104 {
0105   return S.IsUPeriodic();
0106 }
0107 
0108 inline Standard_Real BRepApprox_SurfaceTool::UPeriod(const BRepAdaptor_Surface& S)
0109 {
0110   return S.UPeriod();
0111 }
0112 
0113 inline Standard_Boolean BRepApprox_SurfaceTool::IsVPeriodic(const BRepAdaptor_Surface& S)
0114 {
0115   return S.IsVPeriodic();
0116 }
0117 
0118 inline Standard_Real 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 Standard_Real        U,
0125                                             const Standard_Real        V)
0126 {
0127   return S.Value(U, V);
0128 }
0129 
0130 inline void BRepApprox_SurfaceTool::D0(const BRepAdaptor_Surface& S,
0131                                        const Standard_Real        U,
0132                                        const Standard_Real        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 Standard_Real        U,
0140                                        const Standard_Real        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 Standard_Real        U,
0150                                        const Standard_Real        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 Standard_Real        U,
0163                                        const Standard_Real        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 Standard_Real        U,
0180                                          const Standard_Real        V,
0181                                          const Standard_Integer     Nu,
0182                                          const Standard_Integer     Nv)
0183 {
0184   return S.DN(U, V, Nu, Nv);
0185 }
0186 
0187 inline Standard_Real BRepApprox_SurfaceTool::UResolution(const BRepAdaptor_Surface& S,
0188                                                          const Standard_Real        R3d)
0189 {
0190   return S.UResolution(R3d);
0191 }
0192 
0193 inline Standard_Real BRepApprox_SurfaceTool::VResolution(const BRepAdaptor_Surface& S,
0194                                                          const Standard_Real        R3d)
0195 {
0196   return S.VResolution(R3d);
0197 }
0198 
0199 inline GeomAbs_SurfaceType BRepApprox_SurfaceTool::GetType(const BRepAdaptor_Surface& S)
0200 {
0201   return S.GetType();
0202 }
0203 
0204 inline gp_Pln BRepApprox_SurfaceTool::Plane(const BRepAdaptor_Surface& S)
0205 {
0206   return S.Plane();
0207 }
0208 
0209 inline gp_Cylinder BRepApprox_SurfaceTool::Cylinder(const BRepAdaptor_Surface& S)
0210 {
0211   return S.Cylinder();
0212 }
0213 
0214 inline gp_Cone BRepApprox_SurfaceTool::Cone(const BRepAdaptor_Surface& S)
0215 {
0216   return S.Cone();
0217 }
0218 
0219 inline gp_Sphere BRepApprox_SurfaceTool::Sphere(const BRepAdaptor_Surface& S)
0220 {
0221   return S.Sphere();
0222 }
0223 
0224 inline gp_Torus BRepApprox_SurfaceTool::Torus(const BRepAdaptor_Surface& S)
0225 {
0226   return S.Torus();
0227 }
0228 
0229 inline Handle(Geom_BezierSurface) BRepApprox_SurfaceTool::Bezier(const BRepAdaptor_Surface& S)
0230 {
0231   return (S.Bezier());
0232 }
0233 
0234 inline Handle(Geom_BSplineSurface) BRepApprox_SurfaceTool::BSpline(const BRepAdaptor_Surface& S)
0235 {
0236   return (S.BSpline());
0237 }
0238 
0239 inline gp_Ax1 BRepApprox_SurfaceTool::AxeOfRevolution(const BRepAdaptor_Surface& S)
0240 {
0241   return (S.AxeOfRevolution());
0242 }
0243 
0244 inline gp_Dir BRepApprox_SurfaceTool::Direction(const BRepAdaptor_Surface& S)
0245 {
0246   return (S.Direction());
0247 }
0248 
0249 inline Handle(Adaptor3d_Curve) BRepApprox_SurfaceTool::BasisCurve(const BRepAdaptor_Surface& S)
0250 {
0251   return (S.BasisCurve());
0252 }