Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-26 09:03:16

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 //! Defines a 3d curve as a boundary for a
0030 //! GeomFill_ConstrainedFilling algorithm.
0031 //! This curve is unattached to an existing surface.D
0032 //! Contains fields to allow a reparametrization of curve.
0033 class GeomFill_SimpleBound : public GeomFill_Boundary
0034 {
0035 
0036 public:
0037   //! Constructs the boundary object defined by the 3d curve.
0038   //! The surface to be built along this boundary will be in the
0039   //! tolerance range defined by Tol3d.
0040   //! This object is to be used as a boundary for a
0041   //! GeomFill_ConstrainedFilling framework.
0042   //! Dummy is initialized but has no function in this class.
0043   //! Warning
0044   //! Curve is an adapted curve, that is, an object which is an interface between:
0045   //! -   the services provided by a 3D curve from the package Geom
0046   //! -   and those required of the curve by the computation
0047   //! algorithm which uses it.
0048   //! The adapted curve is created in one of the following ways:
0049   //! -   First sequence:
0050   //! occ::handle<Geom_Curve> myCurve = ... ;
0051   //! occ::handle<GeomAdaptor_Curve>
0052   //! Curve = new
0053   //! GeomAdaptor_Curve(myCurve);
0054   //! -   Second sequence:
0055   //! // Step 1
0056   //! occ::handle<Geom_Curve> myCurve = ... ;
0057   //! GeomAdaptor_Curve Crv (myCurve);
0058   //! // Step 2
0059   //! occ::handle<GeomAdaptor_Curve>
0060   //! Curve = new
0061   //! GeomAdaptor_Curve(Crv);
0062   //! You use the second part of this sequence if you already
0063   //! have the adapted curve Crv.
0064   //! The boundary is then constructed with the Curve object:
0065   //! double Tol = ... ;
0066   //! double dummy = 0. ;
0067   //! myBoundary = GeomFill_SimpleBound
0068   //! (Curve,Tol,dummy);
0069   Standard_EXPORT GeomFill_SimpleBound(const occ::handle<Adaptor3d_Curve>& Curve,
0070                                        const double                        Tol3d,
0071                                        const double                        Tolang);
0072 
0073   Standard_EXPORT gp_Pnt Value(const double U) const override;
0074 
0075   Standard_EXPORT void D1(const double U, gp_Pnt& P, gp_Vec& V) const override;
0076 
0077   Standard_EXPORT void Reparametrize(const double First,
0078                                      const double Last,
0079                                      const bool   HasDF,
0080                                      const bool   HasDL,
0081                                      const double DF,
0082                                      const double DL,
0083                                      const bool   Rev) override;
0084 
0085   Standard_EXPORT void Bounds(double& First, double& Last) const override;
0086 
0087   Standard_EXPORT bool IsDegenerated() const override;
0088 
0089   DEFINE_STANDARD_RTTIEXT(GeomFill_SimpleBound, GeomFill_Boundary)
0090 
0091 private:
0092   occ::handle<Adaptor3d_Curve> myC3d;
0093   occ::handle<Law_Function>    myPar;
0094 };
0095 
0096 #endif // _GeomFill_SimpleBound_HeaderFile