OCC.AppCont module

This package provides the least square algorithmsnecessary to approximate a set of continous curvesor a continous surface.It also provides an instantiation of these algorithmsfor a class Function, a function f(t).The user will have to inherit class Function to use it.-Level : Advanced.All methods of all classes will be advanced.

class AppCont_Function(*args, **kwargs)

Bases: object

D1()
  • Returns the derivative at parameter <theU>.
Parameters:
  • theU (float) –
  • theVec2d (NCollection_Array1<gp_Vec2d>) –
  • theVec (NCollection_Array1<gp_Vec>) –
Return type:

bool

FirstParameter()
  • Returns the first parameter of the function.
Return type:float
GetNbOf2dPoints()
  • Get number of 2d points returned by ‘Value’ and ‘D1’ functions.
Return type:int
GetNbOf3dPoints()
  • Get number of 3d points returned by ‘Value’ and ‘D1’ functions.
Return type:int
GetNumberOfPoints()
  • Get number of 3d and 2d points returned by ‘Value’ and ‘D1’ functions.
Parameters:
  • theNbPnt (int &) –
  • theNbPnt2d (int &) –
Return type:

None

LastParameter()
  • Returns the last parameter of the function.
Return type:float
PeriodInformation()
  • Return information about peridicity in output paramateters space. @param theDimIdx Defines index in output parameters space. 1 <= theDimIdx <= 3 * myNbPnt + 2 * myNbPnt2d.
Parameters:
  • Standard_Integer
  • IsPeriodic (bool) –
  • thePeriod (float &) –
Return type:

void

Value()
  • Returns the point at parameter <theU>.
Parameters:
  • theU (float) –
  • thePnt2d (NCollection_Array1<gp_Pnt2d>) –
  • thePnt (NCollection_Array1<gp_Pnt>) –
Return type:

bool

thisown

The membership flag

class AppCont_LeastSquare(*args)

Bases: object

Parameters:
  • SSP (AppCont_Function &) –
  • U0 (float) –
  • U1 (float) –
  • FirstCons (AppParCurves_Constraint) –
  • LastCons (AppParCurves_Constraint) –
  • Deg (int) –
  • NbPoints (int) –
Return type:

None

Error()
Parameters:
  • F (float &) –
  • MaxE3d (float &) –
  • MaxE2d (float &) –
Return type:

None

IsDone()
Return type:bool
Value()
Return type:AppParCurves_MultiCurve
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases