OpenCascade.js
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)
    • theNbPnt
    • theNbPnt2d
    Returns

    A 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)
    • theU
    • thePnt2d
      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)
    • theU
    • theVec2d
      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)
    • argNo0
    • IsPeriodic
    • thePeriod
    Returns

    A result object with fields:

    • IsPeriodic: updated value from the call.
    • thePeriod: updated value from the call.