Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:36

0001 // Created on: 1998-05-05
0002 // Created by: Stepan MISHIN
0003 // Copyright (c) 1998-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 _Geom_OsculatingSurface_HeaderFile
0018 #define _Geom_OsculatingSurface_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Real.hxx>
0025 #include <Geom_HSequenceOfBSplineSurface.hxx>
0026 #include <TColStd_HSequenceOfInteger.hxx>
0027 #include <TColStd_Array1OfBoolean.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <GeomAbs_IsoType.hxx>
0030 #include <Geom_SequenceOfBSplineSurface.hxx>
0031 class Geom_Surface;
0032 class Geom_BSplineSurface;
0033 
0034 
0035 class Geom_OsculatingSurface;
0036 DEFINE_STANDARD_HANDLE(Geom_OsculatingSurface, Standard_Transient)
0037 
0038 class Geom_OsculatingSurface : public Standard_Transient
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   Standard_EXPORT Geom_OsculatingSurface();
0046   
0047   //! detects if the  surface has punctual U  or  V
0048   //! isoparametric  curve along on  the bounds of the surface
0049   //! relatively to the tolerance Tol and Builds the corresponding
0050   //! osculating surfaces.
0051   Standard_EXPORT Geom_OsculatingSurface(const Handle(Geom_Surface)& BS, const Standard_Real Tol);
0052   
0053   Standard_EXPORT void Init (const Handle(Geom_Surface)& BS, const Standard_Real Tol);
0054   
0055   Standard_EXPORT Handle(Geom_Surface) BasisSurface() const;
0056   
0057   Standard_EXPORT Standard_Real Tolerance() const;
0058   
0059   //! if Standard_True, L is the local osculating surface
0060   //! along U at the point U,V.
0061   Standard_EXPORT Standard_Boolean UOscSurf (const Standard_Real U, const Standard_Real V, Standard_Boolean& t, Handle(Geom_BSplineSurface)& L) const;
0062   
0063   //! if Standard_True, L is the local osculating surface
0064   //! along V at the point U,V.
0065   Standard_EXPORT Standard_Boolean VOscSurf (const Standard_Real U, const Standard_Real V, Standard_Boolean& t, Handle(Geom_BSplineSurface)& L) const;
0066 
0067   //! Dumps the content of me into the stream
0068   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
0069 
0070 
0071   DEFINE_STANDARD_RTTIEXT(Geom_OsculatingSurface,Standard_Transient)
0072 
0073 protected:
0074 
0075 
0076 
0077 
0078 
0079 private:
0080 
0081   
0082   //! returns False if the osculating surface can't be built
0083   Standard_EXPORT Standard_Boolean BuildOsculatingSurface (const Standard_Real Param, const Standard_Integer UKnot, const Standard_Integer VKnot, const Handle(Geom_BSplineSurface)& BS, Handle(Geom_BSplineSurface)& L) const;
0084   
0085   //! returns    True    if  the    isoparametric     is
0086   //! quasi-punctual
0087   Standard_EXPORT Standard_Boolean IsQPunctual (const Handle(Geom_Surface)& S, const Standard_Real Param, const GeomAbs_IsoType IT, const Standard_Real TolMin, const Standard_Real TolMax) const;
0088   
0089   Standard_EXPORT Standard_Boolean HasOscSurf() const;
0090   
0091   Standard_EXPORT Standard_Boolean IsAlongU() const;
0092   
0093   Standard_EXPORT Standard_Boolean IsAlongV() const;
0094   
0095   Standard_EXPORT void ClearOsculFlags();
0096   
0097   Standard_EXPORT const Geom_SequenceOfBSplineSurface& GetSeqOfL1() const;
0098   
0099   Standard_EXPORT const Geom_SequenceOfBSplineSurface& GetSeqOfL2() const;
0100 
0101 
0102   Handle(Geom_Surface) myBasisSurf;
0103   Standard_Real myTol;
0104   Handle(Geom_HSequenceOfBSplineSurface) myOsculSurf1;
0105   Handle(Geom_HSequenceOfBSplineSurface) myOsculSurf2;
0106   Handle(TColStd_HSequenceOfInteger) myKdeg;
0107   TColStd_Array1OfBoolean myAlong;
0108 
0109 
0110 };
0111 
0112 
0113 
0114 
0115 
0116 
0117 
0118 #endif // _Geom_OsculatingSurface_HeaderFile