Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Contap_SurfFunction Class Reference

This class describes the function on a parametric surface. the form of the function is F(u,v) = 0 where u and v are the parametric coordinates of a point on the surface, to compute the contours of the surface. More...

#include <Contap_SurfFunction.hxx>

Inheritance diagram for Contap_SurfFunction:
Inheritance graph
[legend]

Public Member Functions

 Contap_SurfFunction ()
 
void Set (const occ::handle< Adaptor3d_Surface > &S)
 
void Set (const gp_Pnt &Eye)
 
void Set (const gp_Dir &Dir)
 
void Set (const gp_Dir &Dir, const double Angle)
 
void Set (const gp_Pnt &Eye, const double Angle)
 
void Set (const double Tolerance)
 
int NbVariables () const override
 This method has to return 2.
 
int NbEquations () const override
 This method has to return 1.
 
bool Value (const math_Vector &X, math_Vector &F) override
 The dimension of F is 1.
 
bool Derivatives (const math_Vector &X, math_Matrix &D) override
 The dimension of D is (1,2).
 
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.
 
double Root () const
 Root is the value of the function at the solution. It is a vector of dimension 1, i-e a real.
 
double Tolerance () const
 Returns the value Tol so that if std::abs(Func.Root())<Tol the function is considered null.
 
const gp_PntPoint () const
 Returns the value of the solution point on the surface.
 
bool IsTangent ()
 
const gp_VecDirection3d ()
 
const gp_Dir2dDirection2d ()
 
Contap_TFunction FunctionType () const
 
const gp_PntEye () const
 
const gp_DirDirection () const
 
double Angle () const
 
const occ::handle< Adaptor3d_Surface > & Surface () const
 
const occ::handle< Adaptor3d_Surface > & PSurface () const
 Method is entered for compatibility with IntPatch_TheSurfFunction.
 
- 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 ()
 

Detailed Description

This class describes the function on a parametric surface. the form of the function is F(u,v) = 0 where u and v are the parametric coordinates of a point on the surface, to compute the contours of the surface.

Constructor & Destructor Documentation

◆ Contap_SurfFunction()

Contap_SurfFunction::Contap_SurfFunction ( )

Member Function Documentation

◆ Angle()

double Contap_SurfFunction::Angle ( ) const

◆ Derivatives()

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

The dimension of D is (1,2).

Implements math_FunctionSetWithDerivatives.

◆ Direction()

const gp_Dir & Contap_SurfFunction::Direction ( ) const

◆ Direction2d()

const gp_Dir2d & Contap_SurfFunction::Direction2d ( )

◆ Direction3d()

const gp_Vec & Contap_SurfFunction::Direction3d ( )

◆ Eye()

const gp_Pnt & Contap_SurfFunction::Eye ( ) const

◆ FunctionType()

Contap_TFunction Contap_SurfFunction::FunctionType ( ) const

◆ IsTangent()

bool Contap_SurfFunction::IsTangent ( )

◆ NbEquations()

int Contap_SurfFunction::NbEquations ( ) const
overridevirtual

This method has to return 1.

Implements math_FunctionSetWithDerivatives.

◆ NbVariables()

int Contap_SurfFunction::NbVariables ( ) const
overridevirtual

This method has to return 2.

Implements math_FunctionSetWithDerivatives.

◆ Point()

const gp_Pnt & Contap_SurfFunction::Point ( ) const

Returns the value of the solution point on the surface.

◆ PSurface()

const occ::handle< Adaptor3d_Surface > & Contap_SurfFunction::PSurface ( ) const
inline

Method is entered for compatibility with IntPatch_TheSurfFunction.

◆ Root()

double Contap_SurfFunction::Root ( ) const

Root is the value of the function at the solution. It is a vector of dimension 1, i-e a real.

◆ Set() [1/6]

void Contap_SurfFunction::Set ( const double Tolerance)

◆ Set() [2/6]

void Contap_SurfFunction::Set ( const gp_Dir & Dir)

◆ Set() [3/6]

void Contap_SurfFunction::Set ( const gp_Dir & Dir,
const double Angle )

◆ Set() [4/6]

void Contap_SurfFunction::Set ( const gp_Pnt & Eye)

◆ Set() [5/6]

void Contap_SurfFunction::Set ( const gp_Pnt & Eye,
const double Angle )

◆ Set() [6/6]

void Contap_SurfFunction::Set ( const occ::handle< Adaptor3d_Surface > & S)

◆ Surface()

const occ::handle< Adaptor3d_Surface > & Contap_SurfFunction::Surface ( ) const

◆ Tolerance()

double Contap_SurfFunction::Tolerance ( ) const

Returns the value Tol so that if std::abs(Func.Root())<Tol the function is considered null.

◆ Value()

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

The dimension of F is 1.

Implements math_FunctionSetWithDerivatives.

◆ Values()

bool Contap_SurfFunction::Values ( const math_Vector & X,
math_Vector & F,
math_Matrix & D )
overridevirtual

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.

Implements math_FunctionSetWithDerivatives.


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