|
||||
File indexing completed on 2025-01-18 10:03:38
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 0030 class GeomFill_BoundWithSurf; 0031 DEFINE_STANDARD_HANDLE(GeomFill_BoundWithSurf, GeomFill_Boundary) 0032 0033 //! Defines a 3d curve as a boundary for a 0034 //! GeomFill_ConstrainedFilling algorithm. 0035 //! This curve is attached to an existing surface. 0036 //! Defines a constrained boundary for filling 0037 //! the computations are done with a CurveOnSurf and a 0038 //! normals field defined by the normalized normal to 0039 //! the surface along the PCurve. 0040 //! Contains fields to allow a reparametrization of curve 0041 //! and normals field. 0042 class GeomFill_BoundWithSurf : public GeomFill_Boundary 0043 { 0044 0045 public: 0046 0047 0048 0049 //! Constructs a boundary object defined by the 3d curve CurveOnSurf. 0050 //! The surface to be filled along this boundary will be in the 0051 //! tolerance range defined by Tol3d. 0052 //! What's more, at each point of CurveOnSurf, the angle 0053 //! between the normal to the surface to be filled along this 0054 //! boundary, and the normal to the surface on which 0055 //! CurveOnSurf lies, must not be greater than TolAng. 0056 //! This object is to be used as a boundary for a 0057 //! GeomFill_ConstrainedFilling framework. 0058 //! Warning 0059 //! CurveOnSurf is an adapted curve, that is, an object 0060 //! which is an interface between: 0061 //! - the services provided by a curve lying on a surface from the package Geom 0062 //! - and those required of the curve by the computation algorithm which uses it. 0063 //! The adapted curve is created in the following way: 0064 //! Handle(Geom_Surface) mySurface = ... ; 0065 //! Handle(Geom2d_Curve) myParamCurve = ... ; 0066 //! // where myParamCurve is a 2D curve in the parametric space of the surface mySurface 0067 //! Handle(GeomAdaptor_Surface) 0068 //! Surface = new 0069 //! GeomAdaptor_Surface(mySurface); 0070 //! Handle(Geom2dAdaptor_Curve) 0071 //! ParamCurve = new 0072 //! Geom2dAdaptor_Curve(myParamCurve); 0073 //! CurveOnSurf = Adaptor3d_CurveOnSurface(ParamCurve,Surface); 0074 //! The boundary is then constructed with the CurveOnSurf object: 0075 //! Standard_Real Tol = ... ; 0076 //! Standard_Real TolAng = ... ; 0077 //! myBoundary = GeomFill_BoundWithSurf ( 0078 //! CurveOnSurf, Tol, TolAng ); 0079 Standard_EXPORT GeomFill_BoundWithSurf(const Adaptor3d_CurveOnSurface& CurveOnSurf, const Standard_Real Tol3d, const Standard_Real Tolang); 0080 0081 Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE; 0082 0083 Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE; 0084 0085 Standard_EXPORT virtual Standard_Boolean HasNormals() const Standard_OVERRIDE; 0086 0087 Standard_EXPORT virtual gp_Vec Norm (const Standard_Real U) const Standard_OVERRIDE; 0088 0089 Standard_EXPORT virtual void D1Norm (const Standard_Real U, gp_Vec& N, gp_Vec& DN) const Standard_OVERRIDE; 0090 0091 Standard_EXPORT void Reparametrize (const Standard_Real First, const Standard_Real Last, const Standard_Boolean HasDF, const Standard_Boolean HasDL, const Standard_Real DF, const Standard_Real DL, const Standard_Boolean Rev) Standard_OVERRIDE; 0092 0093 Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE; 0094 0095 Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE; 0096 0097 0098 0099 0100 DEFINE_STANDARD_RTTIEXT(GeomFill_BoundWithSurf,GeomFill_Boundary) 0101 0102 protected: 0103 0104 0105 0106 0107 private: 0108 0109 0110 Adaptor3d_CurveOnSurface myConS; 0111 Handle(Law_Function) myPar; 0112 0113 0114 }; 0115 0116 0117 0118 0119 0120 0121 0122 #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 |