|
|
|||
File indexing completed on 2026-09-20 09:17:37
0001 // Created on: 1995-10-17 0002 // Created by: Laurent BOURESCHE 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 #ifndef _GeomFill_BoundWithSurf_HeaderFile 0018 #define _GeomFill_BoundWithSurf_HeaderFile 0019 0020 #include <Standard.hxx> 0021 0022 #include <Adaptor3d_CurveOnSurface.hxx> 0023 #include <GeomFill_Boundary.hxx> 0024 #include <Standard_Real.hxx> 0025 class Law_Function; 0026 class gp_Pnt; 0027 class gp_Vec; 0028 0029 //! Defines a 3d curve as a boundary for a 0030 //! GeomFill_ConstrainedFilling algorithm. 0031 //! This curve is attached to an existing surface. 0032 //! Defines a constrained boundary for filling 0033 //! the computations are done with a CurveOnSurf and a 0034 //! normals field defined by the normalized normal to 0035 //! the surface along the PCurve. 0036 //! Contains fields to allow a reparametrization of curve 0037 //! and normals field. 0038 class GeomFill_BoundWithSurf : public GeomFill_Boundary 0039 { 0040 0041 public: 0042 //! Constructs a boundary object defined by the 3d curve CurveOnSurf. 0043 //! The surface to be filled along this boundary will be in the 0044 //! tolerance range defined by Tol3d. 0045 //! What's more, at each point of CurveOnSurf, the angle 0046 //! between the normal to the surface to be filled along this 0047 //! boundary, and the normal to the surface on which 0048 //! CurveOnSurf lies, must not be greater than TolAng. 0049 //! This object is to be used as a boundary for a 0050 //! GeomFill_ConstrainedFilling framework. 0051 //! Warning 0052 //! CurveOnSurf is an adapted curve, that is, an object 0053 //! which is an interface between: 0054 //! - the services provided by a curve lying on a surface from the package Geom 0055 //! - and those required of the curve by the computation algorithm which uses it. 0056 //! The adapted curve is created in the following way: 0057 //! occ::handle<Geom_Surface> mySurface = ... ; 0058 //! occ::handle<Geom2d_Curve> myParamCurve = ... ; 0059 //! // where myParamCurve is a 2D curve in the parametric space of the surface mySurface 0060 //! occ::handle<GeomAdaptor_Surface> 0061 //! Surface = new 0062 //! GeomAdaptor_Surface(mySurface); 0063 //! occ::handle<Geom2dAdaptor_Curve> 0064 //! ParamCurve = new 0065 //! Geom2dAdaptor_Curve(myParamCurve); 0066 //! CurveOnSurf = Adaptor3d_CurveOnSurface(ParamCurve,Surface); 0067 //! The boundary is then constructed with the CurveOnSurf object: 0068 //! double Tol = ... ; 0069 //! double TolAng = ... ; 0070 //! myBoundary = GeomFill_BoundWithSurf ( 0071 //! CurveOnSurf, Tol, TolAng ); 0072 Standard_EXPORT GeomFill_BoundWithSurf(const Adaptor3d_CurveOnSurface& CurveOnSurf, 0073 const double Tol3d, 0074 const double Tolang); 0075 0076 Standard_EXPORT gp_Pnt Value(const double U) const override; 0077 0078 Standard_EXPORT void D1(const double U, gp_Pnt& P, gp_Vec& V) const override; 0079 0080 Standard_EXPORT bool HasNormals() const override; 0081 0082 Standard_EXPORT gp_Vec Norm(const double U) const override; 0083 0084 Standard_EXPORT void D1Norm(const double U, gp_Vec& N, gp_Vec& DN) const override; 0085 0086 Standard_EXPORT void Reparametrize(const double First, 0087 const double Last, 0088 const bool HasDF, 0089 const bool HasDL, 0090 const double DF, 0091 const double DL, 0092 const bool Rev) override; 0093 0094 Standard_EXPORT void Bounds(double& First, double& Last) const override; 0095 0096 Standard_EXPORT bool IsDegenerated() const override; 0097 0098 DEFINE_STANDARD_RTTIEXT(GeomFill_BoundWithSurf, GeomFill_Boundary) 0099 0100 private: 0101 Adaptor3d_CurveOnSurface myConS; 0102 occ::handle<Law_Function> myPar; 0103 }; 0104 0105 #endif // _GeomFill_BoundWithSurf_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|