libcascade
API ReferenceModelingAlgorithmsTKGeomAlgo

GeomInt

OCCT package GeomInt: GeomInt, GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApprox,…

GeomInt

Provides intersections on between two surfaces of Geom. The result are curves from Geom.

Constructors(1)

Static methods(1)

  • AdjustPeriodic(thePar: number, theParMin: number, theParMax: number, thePeriod: number, theNewPar: number, theOffset: number, theEps: number): { returnValue: boolean; theNewPar: number; theOffset: number }

    Adjusts the parameter <thePar> to the range [theParMin, theParMax].

    Parameters (7)
    • thePar
    • theParMin
    • theParMax
    • thePeriod
    • theNewPar
    • theOffset
    • theEps
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • theNewPar: updated value from the call.
    • theOffset: updated value from the call.

GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(1)

GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(16)

GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_VectorBase_double): void

    Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.

    Parameters (1)
    • Parameters
  • Perform(Parameters: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_VectorBase_double, V1t: math_VectorBase_double, V2t: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.

    Parameters (5)
    • Parameters
    • V1t
    • V2t
    • l1
    • l2
  • Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.

    Parameters (7)
    • Parameters
    • V1t
    • V2t
    • V1c
    • V2c
    • l1
    • l2
  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the function matrix used to approximate the set.

  • returns the derivative function matrix used to approximate the set.

  • ErrorGradient(Grad: math_VectorBase_double, F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.

    Parameters (4)
    • Grad
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • returns the distances between the points of the multiline and the approximation curves.

  • Error(F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.

    Parameters (3)
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • FirstLambda(): number

    returns the value (P2 - P1)/ V1 if the first point was a tangency point.

  • LastLambda(): number

    returns the value (PN - PN-1)/ VN if the last point was a tangency point.

  • returns the matrix of points value.

  • returns the matrix of resulting control points value.

  • Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.

GeomInt_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfWLApprox

Constructors(1)

Instance methods(1)

GeomInt_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(1)

GeomInt_IntSS

Constructors(2)

Static methods(5)

  • BuildPCurves(theFirst: number, theLast: number, theUmin: number, theUmax: number, theVmin: number, theVmax: number, theTol: number, theSurface: Geom_Surface, theCurve: Geom_Curve): { theTol: number; theCurve2d: Geom2d_Curve; [Symbol.dispose](): void }

    creates 2D-curve on given surface from given 3D-curve

    Parameters (9)
    • theFirst
    • theLast
    • theUmin
    • theUmax
    • theVmin
    • theVmax
    • theTol
    • theSurface
    • theCurve
    Returns

    A result object with fields:

    • theTol: updated value from the call.
    • theCurve2d: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.
  • BuildPCurves(f: number, l: number, Tol: number, S: Geom_Surface, C: Geom_Curve): { Tol: number; C2d: Geom2d_Curve; [Symbol.dispose](): void }

    creates 2D-curve on given surface from given 3D-curve

    Parameters (5)
    • f
    • l
    • Tol
    • S
    • C
    Returns

    A result object with fields:

    • Tol: updated value from the call.
    • C2d: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.
  • TrimILineOnSurfBoundaries(theC2d1: Geom2d_Curve, theC2d2: Geom2d_Curve, theBound1: Bnd_Box2d, theBound2: Bnd_Box2d, theArrayOfParameters: NCollection_DynamicArray_double): void

    puts into theArrayOfParameters the parameters of intersection points of given theC2d1 and theC2d2 curves with the boundaries of the source surface.

    Parameters (5)
    • theC2d1
    • theC2d2
    • theBound1
    • theBound2
    • theArrayOfParameters
      Mutated in place; read the updated value from this argument after the call.
  • MakeBSpline(WL: IntPatch_WLine, ideb: number, ifin: number): Geom_Curve
    Parameters (3)
    • WL
    • ideb
    • ifin
  • MakeBSpline2d(theWLine: IntPatch_WLine, ideb: number, ifin: number, onFirst: boolean): Geom2d_BSplineCurve
    Parameters (4)
    • theWLine
    • ideb
    • ifin
    • onFirst

Instance methods(17)

GeomInt_LineConstructor

Splits given Line.

Constructors(1)

Instance methods(5)

  • Initializes me by two surfaces and corresponding tools which represent boundaries of surfaces.

    Parameters (4)
    • D1
    • D2
    • S1
    • S2
  • Splits line.

    Parameters (1)
    • L
  • IsDone(): boolean

    Returns True if splitting was successful.

  • NbParts(): number

    Returns number of splits.

  • Part(I: number, WFirst?: number, WLast?: number): { WFirst: number; WLast: number }

    Return first and last parameters for given index of split.

    Parameters (3)
    • I
    • WFirst
    • WLast
    Returns

    A result object with fields:

    • WFirst: updated value from the call.
    • WLast: updated value from the call.

GeomInt_LineTool

Constructors(1)

Static methods(5)

GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox

Constructors(2)

Instance methods(6)

  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns all the BSpline curves approximating the MultiLine SSP after minimization of the parameter.

  • Error(Index: number): number

    returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.

    Parameters (1)
    • Index
  • MaxError3d(): number

    returns the maximum difference between the old and the new approximation.

  • MaxError2d(): number

    returns the maximum difference between the old and the new approximation.

  • AverageError(): number

    returns the average error between the old and the new approximation.

GeomInt_MyGradientOfTheComputeLineBezierOfWLApprox

Constructors(1)

Instance methods(6)

  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.

  • Error(Index: number): number

    returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.

    Parameters (1)
    • Index
  • MaxError3d(): number

    returns the maximum difference between the old and the new approximation.

  • MaxError2d(): number

    returns the maximum difference between the old and the new approximation.

  • AverageError(): number

    returns the average error between the old and the new approximation.

GeomInt_MyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(6)

  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.

  • Error(Index: number): number

    returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.

    Parameters (1)
    • Index
  • MaxError3d(): number

    returns the maximum difference between the old and the new approximation.

  • MaxError2d(): number

    returns the maximum difference between the old and the new approximation.

  • AverageError(): number

    returns the average error between the old and the new approximation.

GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox

Constructors(1)

Instance methods(11)

GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(11)

GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_VectorBase_double): void

    Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.

    Parameters (1)
    • Parameters
  • Perform(Parameters: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_VectorBase_double, V1t: math_VectorBase_double, V2t: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.

    Parameters (5)
    • Parameters
    • V1t
    • V2t
    • l1
    • l2
  • Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.

    Parameters (7)
    • Parameters
    • V1t
    • V2t
    • V1c
    • V2c
    • l1
    • l2
  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the function matrix used to approximate the set.

  • returns the derivative function matrix used to approximate the set.

  • ErrorGradient(Grad: math_VectorBase_double, F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.

    Parameters (4)
    • Grad
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • returns the distances between the points of the multiline and the approximation curves.

  • Error(F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.

    Parameters (3)
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • FirstLambda(): number

    returns the value (P2 - P1)/ V1 if the first point was a tangency point.

  • LastLambda(): number

    returns the value (PN - PN-1)/ VN if the last point was a tangency point.

  • returns the matrix of points value.

  • returns the matrix of resulting control points value.

  • Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.

GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_VectorBase_double): void

    Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.

    Parameters (1)
    • Parameters
  • Perform(Parameters: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_VectorBase_double, V1t: math_VectorBase_double, V2t: math_VectorBase_double, l1: number, l2: number): void

    Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.

    Parameters (5)
    • Parameters
    • V1t
    • V2t
    • l1
    • l2
  • Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.

    Parameters (7)
    • Parameters
    • V1t
    • V2t
    • V1c
    • V2c
    • l1
    • l2
  • IsDone(): boolean

    returns True if all has been correctly done.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.

  • returns the function matrix used to approximate the set.

  • returns the derivative function matrix used to approximate the set.

  • ErrorGradient(Grad: math_VectorBase_double, F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.

    Parameters (4)
    • Grad
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • returns the distances between the points of the multiline and the approximation curves.

  • Error(F?: number, MaxE3d?: number, MaxE2d?: number): { F: number; MaxE3d: number; MaxE2d: number }

    returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.

    Parameters (3)
    • F
    • MaxE3d
    • MaxE2d
    Returns

    A result object with fields:

    • F: updated value from the call.
    • MaxE3d: updated value from the call.
    • MaxE2d: updated value from the call.
  • FirstLambda(): number

    returns the value (P2 - P1)/ V1 if the first point was a tangency point.

  • LastLambda(): number

    returns the value (PN - PN-1)/ VN if the last point was a tangency point.

  • returns the matrix of points value.

  • returns the matrix of resulting control points value.

  • Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.

GeomInt_ResConstraintOfMyGradientOfTheComputeLineBezierOfWLApprox

Constructors(1)

Instance methods(5)

GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(5)

GeomInt_TheComputeLineBezierOfWLApprox

Constructors(4)

  • constructor(Parameters: math_VectorBase_double, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, Squares?: boolean): GeomInt_TheComputeLineBezierOfWLApprox

    Initializes the fields of the algorithm.

    Parameters (8)
    • Parameters
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • Squares
  • constructor(degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): GeomInt_TheComputeLineBezierOfWLApprox

    Initializes the fields of the algorithm.

    Parameters (8)
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • constructor(Line: GeomInt_TheMultiLineOfWLApprox, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): GeomInt_TheComputeLineBezierOfWLApprox

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

    Parameters (9)
    • Line
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • constructor(Line: GeomInt_TheMultiLineOfWLApprox, Parameters: math_VectorBase_double, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, Squares?: boolean): GeomInt_TheComputeLineBezierOfWLApprox

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

    Parameters (9)
    • Line
    • Parameters
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • Squares

Instance methods(14)

  • Init(degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): void

    Initializes the fields of the algorithm.

    Parameters (8)
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • runs the algorithm after having initialized the fields.

    Parameters (1)
    • Line
  • SetDegrees(degreemin: number, degreemax: number): void

    changes the degrees of the approximation.

    Parameters (2)
    • degreemin
    • degreemax
  • SetTolerances(Tolerance3d: number, Tolerance2d: number): void

    Changes the tolerances of the approximation.

    Parameters (2)
    • Tolerance3d
    • Tolerance2d
  • changes the first and the last constraint points.

    Parameters (2)
    • firstC
    • lastC
  • returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.

  • returns False if the status NoPointsAdded has been sent.

  • Error(Index: number, tol3d?: number, tol2d?: number): { tol3d: number; tol2d: number }

    returns the tolerances 2d and 3d of the <Index> MultiCurve.

    Parameters (3)
    • Index
    • tol3d
    • tol2d
    Returns

    A result object with fields:

    • tol3d: updated value from the call.
    • tol2d: updated value from the call.
  • NbMultiCurves(): number

    Returns the number of MultiCurve doing the approximation of the MultiLine.

  • returns the result of the approximation.

    Parameters (1)
    • Index
  • returns the result of the approximation.

    Parameters (1)
    • Index
  • returns the result of the approximation.

  • returns the type of parametrization

  • returns the new parameters of the approximation corresponding to the points of the multicurve <Index>.

    Parameters (1)
    • Index

GeomInt_TheComputeLineOfWLApprox

Constructors(4)

  • constructor(Parameters: math_VectorBase_double, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, Squares?: boolean): GeomInt_TheComputeLineOfWLApprox

    Initializes the fields of the algorithm.

    Parameters (8)
    • Parameters
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • Squares
  • constructor(degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): GeomInt_TheComputeLineOfWLApprox

    Initializes the fields of the algorithm.

    Parameters (8)
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • constructor(Line: GeomInt_TheMultiLineOfWLApprox, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): GeomInt_TheComputeLineOfWLApprox

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.
    The multiplicities of the internal knots is set by default.

    Parameters (9)
    • Line
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • constructor(Line: GeomInt_TheMultiLineOfWLApprox, Parameters: math_VectorBase_double, degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, Squares?: boolean): GeomInt_TheComputeLineOfWLApprox

    The MultiLine <Line> will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. If <Squares> is True, the computation will be done with no iteration at all.

    Parameters (9)
    • Line
    • Parameters
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • Squares

Instance methods(17)

  • Constructs an interpolation of the MultiLine <Line> The result will be a C2 curve of degree 3.

    Parameters (1)
    • Line
  • Init(degreemin?: number, degreemax?: number, Tolerance3d?: number, Tolerance2d?: number, NbIterations?: number, cutting?: boolean, parametrization?: Approx_ParametrizationType, Squares?: boolean): void

    Initializes the fields of the algorithm.

    Parameters (8)
    • degreemin
    • degreemax
    • Tolerance3d
    • Tolerance2d
    • NbIterations
    • cutting
    • parametrization
    • Squares
  • runs the algorithm after having initialized the fields.

    Parameters (1)
    • Line
  • The approximation will begin with the set of parameters <ThePar>.

    Parameters (1)
    • ThePar
  • The approximation will be done with the set of knots <Knots>. The multiplicities will be set with the degree and the desired continuity.

    Parameters (1)
    • Knots
  • The approximation will be done with the set of knots <Knots> and the multiplicities <Mults>.

    Parameters (2)
    • Knots
    • Mults
  • SetDegrees(degreemin: number, degreemax: number): void

    changes the degrees of the approximation.

    Parameters (2)
    • degreemin
    • degreemax
  • SetTolerances(Tolerance3d: number, Tolerance2d: number): void

    Changes the tolerances of the approximation.

    Parameters (2)
    • Tolerance3d
    • Tolerance2d
  • SetContinuity(C: number): void

    sets the continuity of the spline. if C = 2, the spline will be C2.

    Parameters (1)
    • C
  • changes the first and the last constraint points.

    Parameters (2)
    • firstC
    • lastC
  • SetPeriodic(thePeriodic: boolean): void

    Sets periodic flag. If thePeriodic = true, algorithm tries to build periodic multicurve using corresponding C1 boundary condition for first and last multipoints. Multiline must be closed.

    Parameters (1)
    • thePeriodic
  • returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed.

  • returns False if the status NoPointsAdded has been sent.

  • Error(tol3d?: number, tol2d?: number): { tol3d: number; tol2d: number }

    returns the tolerances 2d and 3d of the MultiBSpCurve.

    Parameters (2)
    • tol3d
    • tol2d
    Returns

    A result object with fields:

    • tol3d: updated value from the call.
    • tol2d: updated value from the call.
  • returns the result of the approximation.

  • returns the result of the approximation.

  • returns the new parameters of the approximation corresponding to the points of the MultiBSpCurve.

GeomInt_TheImpPrmSvSurfacesOfWLApprox

Constructors(2)

Instance methods(7)

  • Compute(u1: number, v1: number, u2: number, v2: number, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d): { returnValue: boolean; u1: number; v1: number; u2: number; v2: number }

    returns True if Tg,Tguv1 Tguv2 can be computed.

    Parameters (8)
    • u1
    • v1
    • u2
    • v2
    • Pt
      Mutated in place; read the updated value from this argument after the call.
    • Tg
      Mutated in place; read the updated value from this argument after the call.
    • Tguv1
      Mutated in place; read the updated value from this argument after the call.
    • Tguv2
      Mutated in place; read the updated value from this argument after the call.
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • u1: updated value from the call.
    • v1: updated value from the call.
    • u2: updated value from the call.
    • v2: updated value from the call.
  • Pnt(u1: number, v1: number, u2: number, v2: number, P: gp_Pnt): void
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • P
  • SeekPoint(u1: number, v1: number, u2: number, v2: number, Point: IntSurf_PntOn2S): boolean

    computes point on curve and parameters on the surfaces

    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Point
      Mutated in place; read the updated value from this argument after the call.
  • Tangency(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg
  • TangencyOnSurf1(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg
  • TangencyOnSurf2(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg
  • FillInitialVectorOfSolution(u1: number, v1: number, u2: number, v2: number, binfu: number, bsupu: number, binfv: number, bsupv: number, X: math_VectorBase_double, TranslationU?: number, TranslationV?: number): { returnValue: boolean; TranslationU: number; TranslationV: number }
    Parameters (11)
    • u1
    • v1
    • u2
    • v2
    • binfu
    • bsupu
    • binfv
    • bsupv
    • X
    • TranslationU
    • TranslationV

GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox

Constructors(2)

Instance methods(8)

  • IsDone(): boolean

    Returns TRUE if the creation completed without failure.

  • IsEmpty(): boolean

    Returns TRUE when there is no solution to the problem.

  • Returns the intersection point.

  • IsTangent(): boolean

    Returns True if the surfaces are tangent at the intersection point.

  • Returns the tangent at the intersection line.

  • Returns the tangent at the intersection line in the parametric space of the first surface.

  • Returns the tangent at the intersection line in the parametric space of the second surface.

  • return the intersection point which is enable for changing.

GeomInt_TheMultiLineOfWLApprox

Constructors(2)

Instance methods(14)

  • FirstPoint(): number
  • LastPoint(): number
  • NbP2d(): number

    Returns the number of 2d points of a TheLine.

  • NbP3d(): number

    Returns the number of 3d points of a TheLine.

  • Value(MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt): void

    Returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.

    Parameters (2)
    • MPointIndex
    • tabPt
      Mutated in place; read the updated value from this argument after the call.
  • Value(MPointIndex: number, tabPt2d: NCollection_Array1_gp_Pnt2d): void

    Returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.

    Parameters (2)
    • MPointIndex
    • tabPt2d
      Mutated in place; read the updated value from this argument after the call.
  • Value(MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt, tabPt2d: NCollection_Array1_gp_Pnt2d): void

    returns the 3d and 2d points of the multipoint <MPointIndex>.

    Parameters (3)
    • MPointIndex
    • tabPt
      Mutated in place; read the updated value from this argument after the call.
    • tabPt2d
      Mutated in place; read the updated value from this argument after the call.
  • Tangency(MPointIndex: number, tabV: NCollection_Array1_gp_Vec): boolean

    Returns the 3d tangency points of the multipoint <MPointIndex> only when 3d points exist.

    Parameters (2)
    • MPointIndex
    • tabV
      Mutated in place; read the updated value from this argument after the call.
  • Tangency(MPointIndex: number, tabV2d: NCollection_Array1_gp_Vec2d): boolean

    Returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.

    Parameters (2)
    • MPointIndex
    • tabV2d
      Mutated in place; read the updated value from this argument after the call.
  • Tangency(MPointIndex: number, tabV: NCollection_Array1_gp_Vec, tabV2d: NCollection_Array1_gp_Vec2d): boolean

    Returns the 3d and 2d points of the multipoint <MPointIndex>.

    Parameters (3)
    • MPointIndex
    • tabV
      Mutated in place; read the updated value from this argument after the call.
    • tabV2d
      Mutated in place; read the updated value from this argument after the call.
  • MakeMLBetween(Low: number, High: number, NbPointsToInsert: number): GeomInt_TheMultiLineOfWLApprox

    Tries to make a sub-line between <Low> and <High> points of this line by adding <NbPointsToInsert> new points.

    Parameters (3)
    • Low
    • High
    • NbPointsToInsert
  • MakeMLOneMorePoint(Low: number, High: number, indbad: number, OtherLine: GeomInt_TheMultiLineOfWLApprox): boolean

    Tries to make a sub-line between <Low> and <High> points of this line by adding one more point between (indbad-1)-th and indbad-th points.

    Parameters (4)
    • Low
    • High
    • indbad
    • OtherLine
      Mutated in place; read the updated value from this argument after the call.
  • Dump(): void

    Dump of the current multi-line.

GeomInt_TheMultiLineToolOfWLApprox

Constructors(1)

Static methods(17)

GeomInt_ThePrmPrmSvSurfacesOfWLApprox

Constructors(1)

Instance methods(6)

  • Compute(u1: number, v1: number, u2: number, v2: number, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d): { returnValue: boolean; u1: number; v1: number; u2: number; v2: number }

    returns True if Tg,Tguv1 Tguv2 can be computed.

    Parameters (8)
    • u1
    • v1
    • u2
    • v2
    • Pt
      Mutated in place; read the updated value from this argument after the call.
    • Tg
      Mutated in place; read the updated value from this argument after the call.
    • Tguv1
      Mutated in place; read the updated value from this argument after the call.
    • Tguv2
      Mutated in place; read the updated value from this argument after the call.
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • u1: updated value from the call.
    • v1: updated value from the call.
    • u2: updated value from the call.
    • v2: updated value from the call.
  • Pnt(u1: number, v1: number, u2: number, v2: number, P: gp_Pnt): void
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • P
  • SeekPoint(u1: number, v1: number, u2: number, v2: number, Point: IntSurf_PntOn2S): boolean

    computes point on curve and parameters on the surfaces

    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Point
      Mutated in place; read the updated value from this argument after the call.
  • Tangency(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg
  • TangencyOnSurf1(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg
  • TangencyOnSurf2(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): boolean
    Parameters (5)
    • u1
    • v1
    • u2
    • v2
    • Tg

GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox

Constructors(3)

Instance methods(16)

GeomInt_WLApprox

Constructors(1)

Static methods(1)

Instance methods(6)