Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-23 09:17:31

0001 // Created on: 1995-12-05
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_DegeneratedBound_HeaderFile
0018 #define _GeomFill_DegeneratedBound_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <gp_Pnt.hxx>
0023 #include <Standard_Real.hxx>
0024 #include <GeomFill_Boundary.hxx>
0025 class gp_Vec;
0026 
0027 //! Description of a degenerated boundary (a point).
0028 //! Class defining a degenerated boundary for a
0029 //! constrained filling with a point and no other
0030 //! constraint. Only used to simulate an ordinary bound,
0031 //! may not be useful and desapear soon.
0032 class GeomFill_DegeneratedBound : public GeomFill_Boundary
0033 {
0034 
0035 public:
0036   Standard_EXPORT GeomFill_DegeneratedBound(const gp_Pnt& Point,
0037                                             const double  First,
0038                                             const double  Last,
0039                                             const double  Tol3d,
0040                                             const double  Tolang);
0041 
0042   Standard_EXPORT gp_Pnt Value(const double U) const override;
0043 
0044   Standard_EXPORT void D1(const double U, gp_Pnt& P, gp_Vec& V) const override;
0045 
0046   Standard_EXPORT void Reparametrize(const double First,
0047                                      const double Last,
0048                                      const bool   HasDF,
0049                                      const bool   HasDL,
0050                                      const double DF,
0051                                      const double DL,
0052                                      const bool   Rev) override;
0053 
0054   Standard_EXPORT void Bounds(double& First, double& Last) const override;
0055 
0056   Standard_EXPORT bool IsDegenerated() const override;
0057 
0058   DEFINE_STANDARD_RTTIEXT(GeomFill_DegeneratedBound, GeomFill_Boundary)
0059 
0060 private:
0061   gp_Pnt myPoint;
0062   double myFirst;
0063   double myLast;
0064 };
0065 
0066 #endif // _GeomFill_DegeneratedBound_HeaderFile