|
|
|||
File indexing completed on 2026-07-29 09:15:12
0001 // Created on: 1996-03-05 0002 // Created by: Joelle CHAUVET 0003 // Copyright (c) 1996-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 #ifndef _GeomPlate_MakeApprox_HeaderFile 0018 #define _GeomPlate_MakeApprox_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <Standard_Integer.hxx> 0025 #include <GeomAbs_Shape.hxx> 0026 class GeomPlate_Surface; 0027 class Geom_BSplineSurface; 0028 class AdvApp2Var_Criterion; 0029 0030 //! Allows you to convert a GeomPlate surface into a BSpline. 0031 class GeomPlate_MakeApprox 0032 { 0033 public: 0034 DEFINE_STANDARD_ALLOC 0035 0036 //! Converts SurfPlate into a Geom_BSplineSurface with 0037 //! n Bezier pieces (n<=Nbmax) of degree <= dgmax 0038 //! and an approximation error < Tol3d if possible 0039 //! the criterion CritPlate is satisfied if possible 0040 Standard_EXPORT GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& SurfPlate, 0041 const AdvApp2Var_Criterion& PlateCrit, 0042 const Standard_Real Tol3d, 0043 const Standard_Integer Nbmax, 0044 const Standard_Integer dgmax, 0045 const GeomAbs_Shape Continuity = GeomAbs_C1, 0046 const Standard_Real EnlargeCoeff = 1.1); 0047 0048 //! Converts SurfPlate into a Geom_BSplineSurface with 0049 //! n Bezier pieces (n<=Nbmax) of degree <= dgmax 0050 //! and an approximation error < Tol3d if possible 0051 //! if CritOrder = -1 , no criterion is used 0052 //! if CritOrder = 0 , a PlateG0Criterion is used with max value > 10*dmax 0053 //! if CritOrder = 1 , a PlateG1Criterion is used with max value > 10*dmax 0054 //! WARNING : for CritOrder = 0 or 1, only the constraints points of SurfPlate 0055 //! are used to evaluate the value of the criterion 0056 Standard_EXPORT GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& SurfPlate, 0057 const Standard_Real Tol3d, 0058 const Standard_Integer Nbmax, 0059 const Standard_Integer dgmax, 0060 const Standard_Real dmax, 0061 const Standard_Integer CritOrder = 0, 0062 const GeomAbs_Shape Continuity = GeomAbs_C1, 0063 const Standard_Real EnlargeCoeff = 1.1); 0064 0065 //! Returns the BSpline surface extracted from the 0066 //! GeomPlate_MakeApprox object. 0067 Standard_EXPORT Handle(Geom_BSplineSurface) Surface() const; 0068 0069 //! Returns the error in computation of the approximation 0070 //! surface. This is the distance between the entire target 0071 //! BSpline surface and the entire original surface 0072 //! generated by BuildPlateSurface and converted by GeomPlate_Surface. 0073 Standard_EXPORT Standard_Real ApproxError() const; 0074 0075 //! Returns the criterion error in computation of the 0076 //! approximation surface. This is estimated relative to the 0077 //! curve and point constraints only. 0078 Standard_EXPORT Standard_Real CriterionError() const; 0079 0080 protected: 0081 private: 0082 Handle(GeomPlate_Surface) myPlate; 0083 Handle(Geom_BSplineSurface) mySurface; 0084 Standard_Real myAppError; 0085 Standard_Real myCritError; 0086 }; 0087 0088 #endif // _GeomPlate_MakeApprox_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|