OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BlendFunc_ConstThroatInv Class Reference

    Class for a function used to compute a ConstThroat chamfer on a surface's boundary. More...

    #include <BlendFunc_ConstThroatInv.hxx>

    Inheritance diagram for BlendFunc_ConstThroatInv:

    Public Member Functions

     BlendFunc_ConstThroatInv (const occ::handle< Adaptor3d_Surface > &S1, const occ::handle< Adaptor3d_Surface > &S2, const occ::handle< Adaptor3d_Curve > &C)
    bool IsSolution (const math_Vector &Sol, const double Tol) override
     Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.
    bool Value (const math_Vector &X, math_Vector &F) override
     computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    bool Derivatives (const math_Vector &X, math_Matrix &D) override
     returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    void Set (const double theThroat, const double, const int Choix) override
    virtual void Set (const bool OnFirst, const occ::handle< Adaptor2d_Curve2d > &COnSurf)=0
     Sets the CurveOnSurface on which a solution has to be found. If <OnFirst> is set to true, the curve will be on the first surface, otherwise the curve is on the second one.
    Public Member Functions inherited from BlendFunc_GenChamfInv
     BlendFunc_GenChamfInv (const occ::handle< Adaptor3d_Surface > &S1, const occ::handle< Adaptor3d_Surface > &S2, const occ::handle< Adaptor3d_Curve > &C)
    void Set (const bool OnFirst, const occ::handle< Adaptor2d_Curve2d > &COnSurf) override
     Sets the CurveOnSurface on which a solution has to be found. If <OnFirst> is set to true, the curve will be on the first surface, otherwise the curve is on the second one.
    void GetTolerance (math_Vector &Tolerance, const double Tol) const override
     Returns in the vector Tolerance the parametric tolerance for each of the 4 variables; Tol is the tolerance used in 3d space.
    void GetBounds (math_Vector &InfBound, math_Vector &SupBound) const override
     Returns in the vector InfBound the lowest values allowed for each of the 4 variables. Returns in the vector SupBound the greatest values allowed for each of the 4 variables.
    int NbEquations () const override
     returns the number of equations of the function.
    bool Values (const math_Vector &X, math_Vector &F, math_Matrix &D) override
     returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
    Public Member Functions inherited from Blend_FuncInv
    int NbVariables () const override
     Returns 4.
    Public Member Functions inherited from math_FunctionSet
    virtual int GetStateNumber ()
     Returns the state of the function corresponding to the latestcall of any methods associated with the function. This function is called by each of the algorithms described later which define the function Integer Algorithm::StateNumber(). The algorithm has the responsibility to call this function when it has found a solution (i.e. a root or a minimum) and has to maintain the association between the solution found and this StateNumber. Byu default, this method returns 0 (which means for the algorithm: no state has been saved). It is the responsibility of the programmer to decide if he needs to save the current state of the function and to return an Integer that allows retrieval of the state.
    virtual ~math_FunctionSet ()

    Protected Attributes

    double Throat
    double param
    double sign1
    double sign2
    gp_Pnt ptgui
    gp_Vec nplan
    double normtg
    double theD
    gp_Vec d1gui
    gp_Vec d2gui
    gp_Pnt pts1
    gp_Pnt pts2
    gp_Vec d1u1
    gp_Vec d1v1
    gp_Vec d1u2
    gp_Vec d1v2
    Protected Attributes inherited from BlendFunc_GenChamfInv
    occ::handle< Adaptor3d_Surface > surf1
    occ::handle< Adaptor3d_Surface > surf2
    occ::handle< Adaptor3d_Curve > curv
    occ::handle< Adaptor2d_Curve2d > csurf
    int choix
    bool first

    Detailed Description

    Class for a function used to compute a ConstThroat chamfer on a surface's boundary.

    Constructor & Destructor Documentation

    ◆ BlendFunc_ConstThroatInv()

    BlendFunc_ConstThroatInv::BlendFunc_ConstThroatInv ( const occ::handle< Adaptor3d_Surface > & S1,
    const occ::handle< Adaptor3d_Surface > & S2,
    const occ::handle< Adaptor3d_Curve > & C )

    Member Function Documentation

    ◆ Derivatives()

    bool BlendFunc_ConstThroatInv::Derivatives ( const math_Vector & X,
    math_Matrix & D )
    overridevirtual

    returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements Blend_FuncInv.

    Reimplemented in BlendFunc_ConstThroatWithPenetrationInv.

    ◆ IsSolution()

    bool BlendFunc_ConstThroatInv::IsSolution ( const math_Vector & Sol,
    const double Tol )
    overridevirtual

    Returns true if Sol is a zero of the function. Tol is the tolerance used in 3d space.

    Implements Blend_FuncInv.

    Reimplemented in BlendFunc_ConstThroatWithPenetrationInv.

    ◆ Set() [1/2]

    virtual void Blend_FuncInv::Set ( const bool OnFirst,
    const occ::handle< Adaptor2d_Curve2d > & COnSurf )
    virtual

    Sets the CurveOnSurface on which a solution has to be found. If <OnFirst> is set to true, the curve will be on the first surface, otherwise the curve is on the second one.

    Implements Blend_FuncInv.

    ◆ Set() [2/2]

    void BlendFunc_ConstThroatInv::Set ( const double theThroat,
    const double ,
    const int Choix )
    overridevirtual

    Implements BlendFunc_GenChamfInv.

    ◆ Value()

    bool BlendFunc_ConstThroatInv::Value ( const math_Vector & X,
    math_Vector & F )
    overridevirtual

    computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Implements Blend_FuncInv.

    Reimplemented in BlendFunc_ConstThroatWithPenetrationInv.

    Field Documentation

    ◆ d1gui

    gp_Vec BlendFunc_ConstThroatInv::d1gui
    protected

    ◆ d1u1

    gp_Vec BlendFunc_ConstThroatInv::d1u1
    protected

    ◆ d1u2

    gp_Vec BlendFunc_ConstThroatInv::d1u2
    protected

    ◆ d1v1

    gp_Vec BlendFunc_ConstThroatInv::d1v1
    protected

    ◆ d1v2

    gp_Vec BlendFunc_ConstThroatInv::d1v2
    protected

    ◆ d2gui

    gp_Vec BlendFunc_ConstThroatInv::d2gui
    protected

    ◆ normtg

    double BlendFunc_ConstThroatInv::normtg
    protected

    ◆ nplan

    gp_Vec BlendFunc_ConstThroatInv::nplan
    protected

    ◆ param

    double BlendFunc_ConstThroatInv::param
    protected

    ◆ ptgui

    gp_Pnt BlendFunc_ConstThroatInv::ptgui
    protected

    ◆ pts1

    gp_Pnt BlendFunc_ConstThroatInv::pts1
    protected

    ◆ pts2

    gp_Pnt BlendFunc_ConstThroatInv::pts2
    protected

    ◆ sign1

    double BlendFunc_ConstThroatInv::sign1
    protected

    ◆ sign2

    double BlendFunc_ConstThroatInv::sign2
    protected

    ◆ theD

    double BlendFunc_ConstThroatInv::theD
    protected

    ◆ Throat

    double BlendFunc_ConstThroatInv::Throat
    protected

    The documentation for this class was generated from the following file: