Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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 ()=default
 Constructor.
 
 GeomConvert_FuncConeLSDist (const occ::handle< NCollection_HArray1< gp_XYZ > > &thePoints, const gp_Dir &theDir)
 
void SetPoints (const occ::handle< NCollection_HArray1< gp_XYZ > > &thePoints)
 
void SetDir (const gp_Dir &theDir)
 
int NbVariables () const override
 Number of variables.
 
bool Value (const math_Vector &X, double &F) override
 Value.
 
- Public Member Functions inherited from math_MultipleVarFunction
virtual int 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 ( )
default

Constructor.

◆ GeomConvert_FuncConeLSDist() [2/2]

GeomConvert_FuncConeLSDist::GeomConvert_FuncConeLSDist ( const occ::handle< NCollection_HArray1< gp_XYZ > > & thePoints,
const gp_Dir & theDir )

Member Function Documentation

◆ NbVariables()

int 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 occ::handle< NCollection_HArray1< gp_XYZ > > & thePoints)
inline

◆ Value()

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

Value.

Implements math_MultipleVarFunction.


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