OpenCascade.js
API ReferenceModelingAlgorithmsTKTopAlgo

BRepApprox

OCCT package BRepApprox: BRepApprox_ApproxLine, BRepApprox_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfApprox,…

BRepApprox_ApproxLine

Constructors(2)

Static methods(2)

Instance methods(3)

BRepApprox_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfApprox

Constructors(1)

Instance methods(1)

BRepApprox_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfApprox

Constructors(1)

Instance methods(16)

  • NbVariables(): number

    returns the number of variables of the function. It corresponds to the number of MultiPoints.

  • Value(X: math_Vector, F: number): { returnValue: boolean; F: number }

    this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.

    Parameters (2)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • Gradient(X: math_Vector, G: math_Vector): boolean

    returns the gradient G of the sum above for the parameters Xi.

    Parameters (2)
    • X
    • G
  • Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }

    returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.

    Parameters (3)
    • X
    • F
    • G
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • NewParameters(): math_Vector

    returns the new parameters of the MultiLine.

  • returns the MultiBSpCurve approximating the set after computing the value F or Grad(F).

  • Error(IPoint: number, CurveIndex: number): number

    returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.

    Parameters (2)
    • IPoint
    • CurveIndex
  • MaxError3d(): number

    returns the maximum distance between the points and the MultiBSpCurve.

  • MaxError2d(): number

    returns the maximum distance between the points and the MultiBSpCurve.

  • returns the function matrix used to approximate the multiline.

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

  • Index(): math_IntegerVector

    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.

  • Parameters (2)
    • TheConstraints
    • FirstPoint
  • Parameters (2)
    • TheConstraints
    • LastPoint
  • SetFirstLambda(l1: number): void
    Parameters (1)
    • l1
  • SetLastLambda(l2: number): void
    Parameters (1)
    • l2

BRepApprox_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_Vector): void

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

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

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, 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
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, 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. <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_Vector, 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.

  • KIndex(): math_IntegerVector

    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.

BRepApprox_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfApprox

Constructors(1)

Instance methods(1)

BRepApprox_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfApprox

Constructors(1)

Instance methods(1)

BRepApprox_MyBSplGradientOfTheComputeLineOfApprox

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.

BRepApprox_MyGradientbisOfTheComputeLineOfApprox

Constructors(1)

  • constructor(SSP: BRepApprox_TheMultiLineOfApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Deg: number, Tol3d: number, Tol2d: number, NbIterations?: number): BRepApprox_MyGradientbisOfTheComputeLineOfApprox

    Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating Bezier curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.

    Parameters (9)
    • SSP
    • FirstPoint
    • LastPoint
    • TheConstraints
    • Parameters
    • Deg
    • Tol3d
    • Tol2d
    • NbIterations

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.

BRepApprox_MyGradientOfTheComputeLineBezierOfApprox

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.

BRepApprox_ParFunctionOfMyGradientbisOfTheComputeLineOfApprox

Constructors(1)

Instance methods(11)

  • NbVariables(): number

    returns the number of variables of the function. It corresponds to the number of MultiPoints.

  • Value(X: math_Vector, F: number): { returnValue: boolean; F: number }

    this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.

    Parameters (2)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • Gradient(X: math_Vector, G: math_Vector): boolean

    returns the gradient G of the sum above for the parameters Xi.

    Parameters (2)
    • X
    • G
  • Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }

    returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.

    Parameters (3)
    • X
    • F
    • G
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • NewParameters(): math_Vector

    returns the new parameters of the MultiLine.

  • returns the MultiCurve approximating the set after computing the value F or Grad(F).

  • Error(IPoint: number, CurveIndex: number): number

    returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.

    Parameters (2)
    • IPoint
    • CurveIndex
  • MaxError3d(): number

    returns the maximum distance between the points and the MultiCurve.

  • MaxError2d(): number

    returns the maximum distance between the points and the MultiCurve.

  • Parameters (2)
    • TheConstraints
    • FirstPoint
  • Parameters (2)
    • TheConstraints
    • LastPoint

BRepApprox_ParFunctionOfMyGradientOfTheComputeLineBezierOfApprox

Constructors(1)

Instance methods(11)

  • NbVariables(): number

    returns the number of variables of the function. It corresponds to the number of MultiPoints.

  • Value(X: math_Vector, F: number): { returnValue: boolean; F: number }

    this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.

    Parameters (2)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • Gradient(X: math_Vector, G: math_Vector): boolean

    returns the gradient G of the sum above for the parameters Xi.

    Parameters (2)
    • X
    • G
  • Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }

    returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.

    Parameters (3)
    • X
    • F
    • G
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • NewParameters(): math_Vector

    returns the new parameters of the MultiLine.

  • returns the MultiCurve approximating the set after computing the value F or Grad(F).

  • Error(IPoint: number, CurveIndex: number): number

    returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.

    Parameters (2)
    • IPoint
    • CurveIndex
  • MaxError3d(): number

    returns the maximum distance between the points and the MultiCurve.

  • MaxError2d(): number

    returns the maximum distance between the points and the MultiCurve.

  • Parameters (2)
    • TheConstraints
    • FirstPoint
  • Parameters (2)
    • TheConstraints
    • LastPoint

BRepApprox_ParLeastSquareOfMyGradientbisOfTheComputeLineOfApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_Vector): void

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

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

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, 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
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, 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. <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_Vector, 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.

  • KIndex(): math_IntegerVector

    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.

BRepApprox_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfApprox

Constructors(4)

Instance methods(17)

  • Perform(Parameters: math_Vector): void

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

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

    Is used after having initialized the fields.

    Parameters (3)
    • Parameters
    • l1
    • l2
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, 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
  • Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, 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. <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_Vector, 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.

  • KIndex(): math_IntegerVector

    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.

BRepApprox_SurfaceTool

Constructors(1)

Static methods(39)

BRepApprox_TheImpPrmSvSurfacesOfApprox

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_Vector, TranslationU: number, TranslationV: number): { returnValue: boolean; TranslationU: number; TranslationV: number }
    Parameters (11)
    • u1
    • v1
    • u2
    • v2
    • binfu
    • bsupu
    • binfv
    • bsupv
    • X
    • TranslationU
    • TranslationV

BRepApprox_TheInt2SOfThePrmPrmSvSurfacesOfApprox

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.

BRepApprox_TheMultiLineOfApprox

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): BRepApprox_TheMultiLineOfApprox

    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: BRepApprox_TheMultiLineOfApprox): 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.

BRepApprox_TheMultiLineToolOfApprox

Constructors(1)

Static methods(17)

BRepApprox_ThePrmPrmSvSurfacesOfApprox

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

BRepApprox_TheZerImpFuncOfTheImpPrmSvSurfacesOfApprox

Constructors(3)

Instance methods(16)