Open CASCADE Technology 7.8.0
Public Member Functions
GeomConvert_FuncConeLSDist Class Reference

Function for search of Cone canonic parameters: coordinates of center local coordinate system, direction of axis, radius and semi-angle from set of points by least square method. More...

#include <GeomConvert_FuncConeLSDist.hxx>

Inheritance diagram for GeomConvert_FuncConeLSDist:
Inheritance graph
[legend]

Public Member Functions

 GeomConvert_FuncConeLSDist ()
 Constructor.
 
 GeomConvert_FuncConeLSDist (const Handle< TColgp_HArray1OfXYZ > &thePoints, const gp_Dir &theDir)
 
void SetPoints (const Handle< TColgp_HArray1OfXYZ > &thePoints)
 
void SetDir (const gp_Dir &theDir)
 
Standard_Integer NbVariables () const override
 Number of variables.
 
Standard_Boolean Value (const math_Vector &X, Standard_Real &F) override
 Value.
 
- Public Member Functions inherited from math_MultipleVarFunction
virtual Standard_Integer GetStateNumber ()
 return the state of the function corresponding to the latestt call of any methods associated to 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_MultipleVarFunction ()
 

Detailed Description

Function for search of Cone canonic parameters: coordinates of center local coordinate system, direction of axis, radius and semi-angle from set of points by least square method.

Constructor & Destructor Documentation

◆ GeomConvert_FuncConeLSDist() [1/2]

GeomConvert_FuncConeLSDist::GeomConvert_FuncConeLSDist ( )
inline

Constructor.

◆ GeomConvert_FuncConeLSDist() [2/2]

GeomConvert_FuncConeLSDist::GeomConvert_FuncConeLSDist ( const Handle< TColgp_HArray1OfXYZ > &  thePoints,
const gp_Dir theDir 
)

Member Function Documentation

◆ NbVariables()

Standard_Integer GeomConvert_FuncConeLSDist::NbVariables ( ) const
overridevirtual

Number of variables.

Implements math_MultipleVarFunction.

◆ SetDir()

void GeomConvert_FuncConeLSDist::SetDir ( const gp_Dir theDir)
inline

◆ SetPoints()

void GeomConvert_FuncConeLSDist::SetPoints ( const Handle< TColgp_HArray1OfXYZ > &  thePoints)
inline

◆ Value()

Standard_Boolean GeomConvert_FuncConeLSDist::Value ( const math_Vector X,
Standard_Real F 
)
overridevirtual

Value.

Implements math_MultipleVarFunction.


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