|
||||
File indexing completed on 2025-01-18 10:03:40
0001 // Created on: 1995-11-03 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_SimpleBound_HeaderFile 0018 #define _GeomFill_SimpleBound_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <GeomFill_Boundary.hxx> 0024 0025 class Law_Function; 0026 class gp_Pnt; 0027 class gp_Vec; 0028 0029 0030 class GeomFill_SimpleBound; 0031 DEFINE_STANDARD_HANDLE(GeomFill_SimpleBound, GeomFill_Boundary) 0032 0033 //! Defines a 3d curve as a boundary for a 0034 //! GeomFill_ConstrainedFilling algorithm. 0035 //! This curve is unattached to an existing surface.D 0036 //! Contains fields to allow a reparametrization of curve. 0037 class GeomFill_SimpleBound : public GeomFill_Boundary 0038 { 0039 0040 public: 0041 0042 0043 0044 //! Constructs the boundary object defined by the 3d curve. 0045 //! The surface to be built along this boundary will be in the 0046 //! tolerance range defined by Tol3d. 0047 //! This object is to be used as a boundary for a 0048 //! GeomFill_ConstrainedFilling framework. 0049 //! Dummy is initialized but has no function in this class. 0050 //! Warning 0051 //! Curve is an adapted curve, that is, an object which is an interface between: 0052 //! - the services provided by a 3D curve from the package Geom 0053 //! - and those required of the curve by the computation 0054 //! algorithm which uses it. 0055 //! The adapted curve is created in one of the following ways: 0056 //! - First sequence: 0057 //! Handle(Geom_Curve) myCurve = ... ; 0058 //! Handle(GeomAdaptor_Curve) 0059 //! Curve = new 0060 //! GeomAdaptor_Curve(myCurve); 0061 //! - Second sequence: 0062 //! // Step 1 0063 //! Handle(Geom_Curve) myCurve = ... ; 0064 //! GeomAdaptor_Curve Crv (myCurve); 0065 //! // Step 2 0066 //! Handle(GeomAdaptor_Curve) 0067 //! Curve = new 0068 //! GeomAdaptor_Curve(Crv); 0069 //! You use the second part of this sequence if you already 0070 //! have the adapted curve Crv. 0071 //! The boundary is then constructed with the Curve object: 0072 //! Standard_Real Tol = ... ; 0073 //! Standard_Real dummy = 0. ; 0074 //! myBoundary = GeomFill_SimpleBound 0075 //! (Curve,Tol,dummy); 0076 Standard_EXPORT GeomFill_SimpleBound(const Handle(Adaptor3d_Curve)& Curve, const Standard_Real Tol3d, const Standard_Real Tolang); 0077 0078 Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE; 0079 0080 Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE; 0081 0082 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; 0083 0084 Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE; 0085 0086 Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE; 0087 0088 0089 0090 0091 DEFINE_STANDARD_RTTIEXT(GeomFill_SimpleBound,GeomFill_Boundary) 0092 0093 protected: 0094 0095 0096 0097 0098 private: 0099 0100 0101 Handle(Adaptor3d_Curve) myC3d; 0102 Handle(Law_Function) myPar; 0103 0104 0105 }; 0106 0107 0108 0109 0110 0111 0112 0113 #endif // _GeomFill_SimpleBound_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |