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){ return Surf.FirstUParameter(); }
0032 inline Standard_Real BRepApprox_SurfaceTool::FirstVParameter(const BRepAdaptor_Surface& Surf){ return Surf.FirstVParameter();}
0033 inline Standard_Real BRepApprox_SurfaceTool::LastUParameter(const BRepAdaptor_Surface& Surf){ return Surf.LastUParameter();}
0034 inline Standard_Real BRepApprox_SurfaceTool::LastVParameter(const BRepAdaptor_Surface& Surf){ return Surf.LastVParameter();}
0035
0036 inline Standard_Integer BRepApprox_SurfaceTool::NbUIntervals(const BRepAdaptor_Surface& Surf,
0037 const GeomAbs_Shape S){
0038 return Surf.NbUIntervals(S);
0039 }
0040
0041 inline Standard_Integer BRepApprox_SurfaceTool::NbVIntervals(const BRepAdaptor_Surface& Surf,
0042 const GeomAbs_Shape S){
0043 return Surf.NbVIntervals(S);
0044 }
0045
0046 inline void BRepApprox_SurfaceTool::UIntervals(const BRepAdaptor_Surface& Surf,
0047 TColStd_Array1OfReal& Tab,
0048 const GeomAbs_Shape S){
0049 Surf.UIntervals(Tab,S);
0050 }
0051
0052 inline void BRepApprox_SurfaceTool::VIntervals(const BRepAdaptor_Surface& Surf,
0053 TColStd_Array1OfReal& Tab,
0054 const GeomAbs_Shape S){
0055 Surf.VIntervals(Tab,S);
0056 }
0057
0058
0059 inline Handle(Adaptor3d_Surface) BRepApprox_SurfaceTool::UTrim(const BRepAdaptor_Surface& Surf,
0060 const Standard_Real F,
0061 const Standard_Real L,
0062 const Standard_Real Tol) {
0063 return Surf.UTrim(F,L,Tol);
0064 }
0065
0066 inline Handle(Adaptor3d_Surface) BRepApprox_SurfaceTool::VTrim(const BRepAdaptor_Surface& Surf,
0067 const Standard_Real F,
0068 const Standard_Real L,
0069 const Standard_Real Tol) {
0070 return Surf.VTrim(F,L,Tol);
0071 }
0072
0073
0074
0075
0076 inline Standard_Boolean BRepApprox_SurfaceTool::IsUClosed(const BRepAdaptor_Surface& S)
0077 {
0078 return S.IsUClosed();
0079 }
0080
0081 inline Standard_Boolean BRepApprox_SurfaceTool::IsVClosed(const BRepAdaptor_Surface& S)
0082 {
0083 return S.IsVClosed();
0084 }
0085
0086 inline Standard_Boolean BRepApprox_SurfaceTool::IsUPeriodic(const BRepAdaptor_Surface& S)
0087 {
0088 return S.IsUPeriodic();
0089 }
0090
0091 inline Standard_Real BRepApprox_SurfaceTool::UPeriod(const BRepAdaptor_Surface& S)
0092 {
0093 return S.UPeriod();
0094 }
0095
0096 inline Standard_Boolean BRepApprox_SurfaceTool::IsVPeriodic(const BRepAdaptor_Surface& S)
0097 {
0098 return S.IsVPeriodic();
0099 }
0100
0101 inline Standard_Real BRepApprox_SurfaceTool::VPeriod(const BRepAdaptor_Surface& S)
0102 {
0103 return S.VPeriod();
0104 }
0105
0106 inline gp_Pnt BRepApprox_SurfaceTool::Value(const BRepAdaptor_Surface& S,
0107 const Standard_Real U,
0108 const Standard_Real V )
0109 {
0110 return S.Value(U,V);
0111 }
0112
0113 inline void BRepApprox_SurfaceTool::D0(const BRepAdaptor_Surface& S,
0114 const Standard_Real U,
0115 const Standard_Real V,
0116 gp_Pnt& P)
0117 {
0118 S.D0(U,V,P);
0119 }
0120
0121 inline void BRepApprox_SurfaceTool::D1(const BRepAdaptor_Surface& S,
0122 const Standard_Real U,
0123 const Standard_Real V,
0124 gp_Pnt& P,
0125 gp_Vec& D1U,
0126 gp_Vec& D1V)
0127 {
0128 S.D1(U,V,P,D1U,D1V);
0129 }
0130
0131 inline void BRepApprox_SurfaceTool::D2(const BRepAdaptor_Surface& S,
0132 const Standard_Real U,
0133 const Standard_Real V,
0134 gp_Pnt& P,
0135 gp_Vec& D1U,
0136 gp_Vec& D1V,
0137 gp_Vec& D2U,
0138 gp_Vec& D2V,
0139 gp_Vec& D2UV)
0140 {
0141 S.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
0142 }
0143
0144 inline void BRepApprox_SurfaceTool::D3(const BRepAdaptor_Surface& S,
0145 const Standard_Real U,
0146 const Standard_Real V,
0147 gp_Pnt& P,
0148 gp_Vec& D1U,
0149 gp_Vec& D1V,
0150 gp_Vec& D2U,
0151 gp_Vec& D2V,
0152 gp_Vec& D2UV,
0153 gp_Vec& D3U,
0154 gp_Vec& D3V,
0155 gp_Vec& D3UUV,
0156 gp_Vec& D3UVV)
0157 {
0158 S.D3(U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV);
0159 }
0160
0161 inline gp_Vec BRepApprox_SurfaceTool::DN(const BRepAdaptor_Surface& S,
0162 const Standard_Real U,
0163 const Standard_Real V,
0164 const Standard_Integer Nu,
0165 const Standard_Integer Nv)
0166 {
0167 return S.DN(U,V,Nu,Nv);
0168 }
0169
0170 inline Standard_Real BRepApprox_SurfaceTool::UResolution(const BRepAdaptor_Surface& S,
0171 const Standard_Real R3d)
0172 {
0173 return S.UResolution(R3d);
0174 }
0175
0176 inline Standard_Real BRepApprox_SurfaceTool::VResolution(const BRepAdaptor_Surface& S,
0177 const Standard_Real R3d)
0178 {
0179 return S.VResolution(R3d);
0180 }
0181
0182 inline GeomAbs_SurfaceType BRepApprox_SurfaceTool::GetType(const BRepAdaptor_Surface& S )
0183 {
0184 return S.GetType();
0185 }
0186
0187 inline gp_Pln BRepApprox_SurfaceTool::Plane(const BRepAdaptor_Surface& S)
0188 {
0189 return S.Plane();
0190 }
0191
0192 inline gp_Cylinder BRepApprox_SurfaceTool::Cylinder(const BRepAdaptor_Surface& S)
0193 {
0194 return S.Cylinder();
0195 }
0196
0197 inline gp_Cone BRepApprox_SurfaceTool::Cone(const BRepAdaptor_Surface& S)
0198 {
0199 return S.Cone();
0200 }
0201
0202 inline gp_Sphere BRepApprox_SurfaceTool::Sphere(const BRepAdaptor_Surface& S)
0203 {
0204 return S.Sphere();
0205 }
0206
0207 inline gp_Torus BRepApprox_SurfaceTool::Torus(const BRepAdaptor_Surface& S)
0208 {
0209 return S.Torus();
0210 }
0211
0212
0213 inline Handle(Geom_BezierSurface) BRepApprox_SurfaceTool::Bezier(const BRepAdaptor_Surface& S) {
0214 return(S.Bezier());
0215 }
0216
0217 inline Handle(Geom_BSplineSurface) BRepApprox_SurfaceTool::BSpline(const BRepAdaptor_Surface& S) {
0218 return(S.BSpline());
0219 }
0220
0221
0222 inline gp_Ax1 BRepApprox_SurfaceTool::AxeOfRevolution(const BRepAdaptor_Surface& S) {
0223 return(S.AxeOfRevolution());
0224 }
0225
0226 inline gp_Dir BRepApprox_SurfaceTool::Direction(const BRepAdaptor_Surface& S) {
0227 return(S.Direction());
0228 }
0229
0230 inline Handle(Adaptor3d_Curve) BRepApprox_SurfaceTool::BasisCurve(const BRepAdaptor_Surface& S) {
0231 return(S.BasisCurve());
0232 }