OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

Geom2dInt

OCCT package Geom2dInt: Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter, Geom2dInt_Geom2dCurveTool, Geom2dInt_GInter,…

Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter

Constructors(1)

Instance methods(5)

Geom2dInt_Geom2dCurveTool

This class provides a Geom2dCurveTool as < Geom2dCurveTool from IntCurve > from a Tool as < Geom2dCurveTool from Adaptor3d > .

Constructors(1)

Static methods(22)

Geom2dInt_GInter

Constructors(7)

Instance methods(9)

Geom2dInt_IntConicCurveOfGInter

Constructors(6)

Instance methods(5)

Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter

Constructors(1)

Instance methods(3)

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

    Computes the value of the signed distance between the implicit curve and the point at parameter Param on the parametrised curve.

    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.

    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.

    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.

Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter

Constructors(1)

Instance methods(5)

  • NbVariables(): number

    returns 2.

  • NbEquations(): number

    returns 2.

  • 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

Geom2dInt_TheIntConicCurveOfGInter

Constructors(6)

Instance methods(5)

Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter

Constructors(2)

Instance methods(4)

Geom2dInt_TheIntPCurvePCurveOfGInter

Constructors(1)

Instance methods(4)

Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter

Constructors(1)

Instance methods(13)

  • ComputeWithBox(Curve: Adaptor2d_Curve2d, OtherBox: Bnd_Box2d): void

    The current polygon is modified if most of the points of the polygon are outside the box <OtherBox>. In this situation, bounds are computed to build a polygon inside or near the OtherBox.

    Parameters (2)
    • Curve
    • OtherBox
  • Returns the tolerance of the polygon.

  • Parameters (1)
    • x
  • Closed(clos: boolean): void
    Parameters (1)
    • clos
  • Closed(): boolean

    Returns True if the polyline is closed.

  • NbSegments(): number

    Give the number of Segments in the polyline.

  • Segment(theIndex: number, theBegin: gp_Pnt2d, theEnd: gp_Pnt2d): void

    Returns the points of the segment <Index> in the Polygon.

    Parameters (3)
    • theIndex
    • theBegin
      Mutated in place; read the updated value from this argument after the call.
    • theEnd
      Mutated in place; read the updated value from this argument after the call.
  • 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
  • CalculRegion(x: number, y: number, x1: number, x2: number, y1: number, y2: number): number
    Parameters (6)
    • x
    • y
    • x1
    • x2
    • y1
    • y2
  • Dump(): void

Geom2dInt_TheProjPCurOfGInter

Constructors(1)

Static methods(2)

  • FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, Tol: number): number

    Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. In that case, no bounds are given. The research of the right parameter has to be made on the natural parametric domain of the curve.

    Parameters (3)
    • C
    • Pnt
    • Tol
  • FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, LowParameter: number, HighParameter: number, Tol: number): number

    Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt.
    The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. LowParameter and HighParameter give the boundaries of the interval in which the parameter certainly lies. These parameters are given to implement a more efficient algorithm. So, it is not necessary to check that the returned value verifies LowParameter <= Value <= HighParameter.

    Parameters (5)
    • C
    • Pnt
    • LowParameter
    • HighParameter
    • Tol