OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

IntCurveSurface

OCCT package IntCurveSurface: IntCurveSurface_HInter, IntCurveSurface_Intersection, IntCurveSurface_IntersectionSegment,…

IntCurveSurface_Intersection

Instance methods(5)

  • NbPoints(): number

    returns the number of IntersectionPoint if IsDone returns True. else NotDone is raised.

  • NbSegments(): number

    returns the number of IntersectionSegment if IsDone returns True. else NotDone is raised.

  • returns the IntersectionSegment of range <Index> raises NotDone if the computation has failed or if the computation has not been done raises OutOfRange if Index is not in the range <1..NbSegment>

    Parameters (1)
    • Index
  • IsParallel(): boolean

    Returns true if curve is parallel or belongs surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...).

  • Dump(): void

    Dump all the fields.

IntCurveSurface_TheCSFunctionOfHInter

Constructors(1)

Instance methods(9)

  • NbVariables(): number

    Returns the number of variables of the function.

  • NbEquations(): number

    Returns the number of equations of the function.

  • Value(X: math_Vector, F: math_Vector): boolean

    Computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
  • Derivatives(X: math_Vector, D: math_Matrix): boolean

    Returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • D
  • Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean

    returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.

    Parameters (3)
    • X
    • F
    • D
  • Root(): number

IntCurveSurface_TheExactHInter

Constructors(2)

Instance methods(7)

  • Perform(U: number, V: number, W: number, Rsnld: math_FunctionSetRoot, u0: number, v0: number, u1: number, v1: number, w0: number, w1: number): void

    compute the solution it's possible to write to optimize: IntImp_IntCS inter(S1,C1,Toltangency) math_FunctionSetRoot rsnld(Inter.function()) while ...{ u=... v=... w=... inter.Perform(u,v,w,rsnld) } or IntImp_IntCS inter(Toltangency) inter.SetSurface(S); math_FunctionSetRoot rsnld(Inter.function()) while ...{ C=... inter.SetCurve(C); u=... v=... w=... inter.Perform(u,v,w,rsnld) }

    Parameters (10)
    • U
    • V
    • W
    • Rsnld
    • u0
    • v0
    • u1
    • v1
    • w0
    • w1
  • IsDone(): boolean

    Returns TRUE if the creation completed without failure.

  • IsEmpty(): boolean
  • returns the intersection point The exception NotDone is raised if IsDone is false. The exception DomainError is raised if IsEmpty is true.

  • ParameterOnSurface(U: number, V: number): { U: number; V: number }
    Parameters (2)
    • U
    • V
  • return the math function which is used to compute the intersection

IntCurveSurface_TheHCurveTool

Constructors(1)

Static methods(27)

  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Returns the number of intervals for continuity . May be one if Continuity(myclass) >= .

    Parameters (2)
    • C
    • S
  • Stores in <T> the parameters bounding the intervals of continuity .
    The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

    Parameters (3)
    • C
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Value(C: Adaptor3d_Curve, U: number): gp_Pnt

    Computes the point of parameter U on the curve.

    Parameters (2)
    • C
    • U
  • D0(C: Adaptor3d_Curve, U: number, P: gp_Pnt): void

    Computes the point of parameter U on the curve.

    Parameters (3)
    • C
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
  • D1(C: Adaptor3d_Curve, U: number, P: gp_Pnt, V: gp_Vec): void

    Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.

    Parameters (4)
    • C
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
    • V
      Mutated in place; read the updated value from this argument after the call.
  • D2(C: Adaptor3d_Curve, U: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void

    Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.

    Parameters (5)
    • C
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
    • V1
      Mutated in place; read the updated value from this argument after the call.
    • V2
      Mutated in place; read the updated value from this argument after the call.
  • D3(C: Adaptor3d_Curve, U: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void

    Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.

    Parameters (6)
    • C
    • U
    • P
      Mutated in place; read the updated value from this argument after the call.
    • V1
      Mutated in place; read the updated value from this argument after the call.
    • V2
      Mutated in place; read the updated value from this argument after the call.
    • V3
      Mutated in place; read the updated value from this argument after the call.
  • DN(C: Adaptor3d_Curve, U: number, N: number): gp_Vec

    The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.

    Parameters (3)
    • C
    • U
    • N
  • Resolution(C: Adaptor3d_Curve, R3d: number): number

    Returns the parametric resolution corresponding to the real space resolution <R3d>.

    Parameters (2)
    • C
    • R3d
  • Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.

    Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • Parameters (1)
    • C
  • NbSamples(C: Adaptor3d_Curve, U0: number, U1: number): number
    Parameters (3)
    • C
    • U0
    • U1
  • SamplePars(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double

    Returns sample parameters for the curve within [U0, U1] range, computed based on deflection and minimum number of points.

    Parameters (5)
    • C
      the curve adaptor
    • U0
      start parameter
    • U1
      end parameter
    • Defl
      deflection tolerance
    • NbMin
      minimum number of sample points
    Returns

    array of sample parameter values

  • SamplePars_1(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double

    Returns sample parameters for the curve within [U0, U1] range, computed based on deflection and minimum number of points.

    Parameters (5)
    • C
      the curve adaptor
    • U0
      start parameter
    • U1
      end parameter
    • Defl
      deflection tolerance
    • NbMin
      minimum number of sample points
    Returns

    array of sample parameter values

  • SamplePars_2(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): { Pars: NCollection_HArray1_double; [Symbol.dispose](): void }
    Deprecated
    Parameters (5)
    • C
    • U0
    • U1
    • Defl
    • NbMin
    Returns

    A result object with fields:

    • Pars: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.

IntCurveSurface_ThePolygonOfHInter

Constructors(3)

Instance methods(12)

  • Give the bounding box of the polygon.

  • Parameters (1)
    • x
  • Closed(flag: boolean): void
    Parameters (1)
    • flag
  • Closed(): boolean
  • NbSegments(): number

    Give the number of Segments in the polyline.

  • BeginOfSeg(theIndex: number): gp_Pnt

    Give the point of range Index in the Polygon.

    Parameters (1)
    • theIndex
  • EndOfSeg(theIndex: number): gp_Pnt

    Give the point of range Index in the Polygon.

    Parameters (1)
    • theIndex
  • InfParameter(): number

    Returns the parameter (On the curve) of the first point of the Polygon.

  • SupParameter(): number

    Returns the parameter (On the curve) of the last point of the Polygon.

  • ApproxParamOnCurve(Index: number, ParamOnLine: number): number

    Give an approximation of the parameter on the curve according to the discretization of the Curve.

    Parameters (2)
    • Index
    • ParamOnLine
  • Dump(): void

IntCurveSurface_ThePolygonToolOfHInter

Constructors(1)

Static methods(7)

IntCurveSurface_TheQuadCurvExactHInter

Constructors(1)

Instance methods(5)

  • IsDone(): boolean
  • NbRoots(): number
  • Root(Index: number): number
    Parameters (1)
    • Index
  • NbIntervals(): number
  • Intervals(Index: number, U1: number, U2: number): { U1: number; U2: number }

    U1 and U2 are the parameters of a segment on the curve.

    Parameters (3)
    • Index
    • U1
    • U2
    Returns

    A result object with fields:

    • U1: updated value from the call.
    • U2: updated value from the call.

IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter

Constructors(1)

Instance methods(3)

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

    Computes the value of the signed distance between the implicit surface and the point at parameter Param on the parametrised curve. Value always returns True.

    Parameters (2)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • Derivative(X: number, D: number): { returnValue: boolean; D: number }

    Computes the derivative of the previous function at parameter Param. Derivative always returns True.

    Parameters (2)
    • X
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • D: updated value from the call.
  • Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }

    Computes the value and the derivative of the function. returns True.

    Parameters (3)
    • X
    • F
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
    • D: updated value from the call.