libcascade
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)

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(25)

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.