Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created by: Julia GERASIMOVA
0002 // Copyright (c) 2015 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _BlendFunc_ConstThroatWithPenetration_HeaderFile
0016 #define _BlendFunc_ConstThroatWithPenetration_HeaderFile
0017 
0018 #include <Adaptor3d_Surface.hxx>
0019 #include <BlendFunc_ConstThroat.hxx>
0020 #include <math_Vector.hxx>
0021 #include <TColStd_Array1OfReal.hxx>
0022 #include <TColStd_Array1OfInteger.hxx>
0023 
0024 class math_Matrix;
0025 
0026 //! Class for a function used to compute a chamfer with constant throat:
0027 //! the section of chamfer is right-angled triangle,
0028 //! the first of two surfaces (where is the top of the chamfer)
0029 //! is virtually moved inside the solid by offset operation,
0030 //! the apex of the section is on the intersection curve between moved surface and second surface,
0031 //! right angle is at the top of the chamfer,
0032 //! the length of the leg from apex to top is constant - it is throat
0033 class BlendFunc_ConstThroatWithPenetration  : public BlendFunc_ConstThroat
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   Standard_EXPORT BlendFunc_ConstThroatWithPenetration(const Handle(Adaptor3d_Surface)& S1,
0041                                                        const Handle(Adaptor3d_Surface)& S2,
0042                                                        const Handle(Adaptor3d_Curve)& C);
0043   
0044   
0045   //! computes the values <F> of the Functions for the
0046   //! variable <X>.
0047   //! Returns True if the computation was done successfully,
0048   //! False otherwise.
0049   Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F) Standard_OVERRIDE;
0050   
0051   //! returns the values <D> of the derivatives for the
0052   //! variable <X>.
0053   //! Returns True if the computation was done successfully,
0054   //! False otherwise.
0055   Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D) Standard_OVERRIDE;
0056   
0057   //Standard_EXPORT void Set (const Standard_Real Param) Standard_OVERRIDE;
0058   
0059   Standard_EXPORT Standard_Boolean IsSolution (const math_Vector& Sol, const Standard_Real Tol) Standard_OVERRIDE;
0060   
0061   //Standard_EXPORT const gp_Pnt& PointOnS1() const Standard_OVERRIDE;
0062   
0063   //Standard_EXPORT const gp_Pnt& PointOnS2() const Standard_OVERRIDE;
0064   
0065   //Standard_EXPORT Standard_Boolean IsTangencyPoint() const Standard_OVERRIDE;
0066   
0067   Standard_EXPORT const gp_Vec& TangentOnS1() const Standard_OVERRIDE;
0068   
0069   Standard_EXPORT const gp_Vec2d& Tangent2dOnS1() const Standard_OVERRIDE;
0070   
0071   Standard_EXPORT const gp_Vec& TangentOnS2() const Standard_OVERRIDE;
0072   
0073   Standard_EXPORT const gp_Vec2d& Tangent2dOnS2() const Standard_OVERRIDE;
0074   
0075   //! Returns the tangent vector at the section,
0076   //! at the beginning and the end of the section, and
0077   //! returns the normal (of the surfaces) at
0078   //! these points.
0079   //Standard_EXPORT void Tangent (const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2, gp_Vec& TgFirst, gp_Vec& TgLast, gp_Vec& NormFirst, gp_Vec& NormLast) const Standard_OVERRIDE;
0080   
0081   //! Sets the throat and the "quadrant".
0082   //Standard_EXPORT void Set (const Standard_Real theThroat, const Standard_Real, const Standard_Integer Choix) Standard_OVERRIDE;
0083   
0084   //! Returns the length of the maximum section
0085   Standard_EXPORT Standard_Real GetSectionSize() const Standard_OVERRIDE;
0086 
0087   
0088 
0089 
0090 
0091 protected:
0092 
0093 
0094 
0095 private:
0096 
0097 
0098 
0099 };
0100 
0101 
0102 
0103 
0104 
0105 
0106 
0107 #endif // _BlendFunc_ConstThroatWithPenetration_HeaderFile