API ReferenceModelingDataTKGeomBase
AppCont
OCCT package AppCont: AppCont_Function, AppCont_LeastSquare, PeriodicityInfo.
AppCont_Function
Class describing a continuous 3d and/or function f(u). This class must be provided by the user to use the approximation algorithm FittingCurve.
Instance methods(8)
- GetNumberOfPoints(theNbPnt: number, theNbPnt2d: number): { theNbPnt: number; theNbPnt2d: number }
Get number of 3d and 2d points returned by "Value" and "D1" functions.
Parameters (2)theNbPnttheNbPnt2d
ReturnsA result object with fields:
theNbPnt: updated value from the call.theNbPnt2d: updated value from the call.
- GetNbOf3dPoints(): number
Get number of 3d points returned by "Value" and "D1" functions.
- GetNbOf2dPoints(): number
Get number of 2d points returned by "Value" and "D1" functions.
- FirstParameter(): number
Returns the first parameter of the function.
- LastParameter(): number
Returns the last parameter of the function.
- Value(theU: number, thePnt2d: NCollection_Array1_gp_Pnt2d, thePnt: NCollection_Array1_gp_Pnt): boolean
Returns the point at parameter <theU>.
Parameters (3)theUthePnt2d—Mutated in place; read the updated value from this argument after the call.thePnt—Mutated in place; read the updated value from this argument after the call.
- D1(theU: number, theVec2d: NCollection_Array1_gp_Vec2d, theVec: NCollection_Array1_gp_Vec): boolean
Returns the derivative at parameter <theU>.
Parameters (3)theUtheVec2d—Mutated in place; read the updated value from this argument after the call.theVec—Mutated in place; read the updated value from this argument after the call.
- PeriodInformation(argNo0: number, IsPeriodic: boolean, thePeriod: number): { IsPeriodic: boolean; thePeriod: number }
Return information about peridicity in output paramateters space.
Parameters (3)argNo0IsPeriodicthePeriod
ReturnsA result object with fields:
IsPeriodic: updated value from the call.thePeriod: updated value from the call.
AppCont_LeastSquare
Constructors(1)
- constructor(SSP: AppCont_Function, U0: number, U1: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Deg: number, NbPoints: number): AppCont_LeastSquareParameters (7)
SSPU0U1FirstConsLastConsDegNbPoints