OpenCascade.js
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)

  • 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

GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox

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.

GeomInt_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(1)

GeomInt_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfWLApprox

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_MyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

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

    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.

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_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox

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

GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox

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

GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox

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.

GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox

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.

GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox

Constructors(1)

Instance methods(5)

GeomInt_ResConstraintOfMyGradientOfTheComputeLineBezierOfWLApprox

Constructors(1)

Instance methods(5)

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_Vector, 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)