OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

IntCurve

OCCT package IntCurve: IntCurve_IConicTool, IntCurve_IntConicConic, IntCurve_IntImpConicParConic, IntCurve_MyImpParToolOfIntImpConicParConic, and 5 more…

IntCurve_IConicTool

Implementation of the ImpTool from IntImpParGen for conics of gp.

Constructors(7)

Instance methods(6)

  • Value(X: number): gp_Pnt2d
    Parameters (1)
    • X
  • D1(U: number, P: gp_Pnt2d, T: gp_Vec2d): void
    Parameters (3)
    • U
    • P
    • T
  • D2(U: number, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d): void
    Parameters (4)
    • U
    • P
    • T
    • N
  • Distance(P: gp_Pnt2d): number

    Computes the value of the signed distance between the point P and the implicit curve.

    Parameters (1)
    • P
  • Computes the Gradient of the Signed Distance between a point and the implicit curve, at the point P.

    Parameters (1)
    • P
  • Returns the parameter U of the point on the implicit curve corresponding to the point P. The correspondence between P and the point P(U) on the implicit curve must be coherent with the way of determination of the signed distance.

    Parameters (1)
    • P

IntCurve_IntConicConic

Provides methods to intersect two conics. The exception ConstructionError is raised in constructors or in Perform methods when a domain (Domain from IntRes2d) is not correct, i-e when a Circle (Circ2d from gp) or an Ellipse (i-e Elips2d from gp) do not have a closed domain (use the SetEquivalentParameters method for a domain on a circle or an ellipse).

Constructors(16)

Instance methods(15)

IntCurve_IntImpConicParConic

Constructors(2)

Instance methods(4)

IntCurve_MyImpParToolOfIntImpConicParConic

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.

IntCurve_PConic

This class represents a conic from gp as a parametric curve ( in order to be used by the class PConicTool from IntCurve).

Constructors(6)

Instance methods(8)

  • SetEpsX(EpsDist: number): void

    EpsX is a internal tolerance used in math algorithms, usually about 1e-10 (See FunctionAllRoots for more details).

    Parameters (1)
    • EpsDist
  • SetAccuracy(Nb: number): void

    Accuracy is the number of samples used to approximate the parametric curve on its domain.

    Parameters (1)
    • Nb
  • Accuracy(): number
  • EpsX(): number
  • The Conics are manipulated as objects which only depend on three parameters : Axis and two Real from Standards. Type Curve is used to select the correct Conic.

  • Param1(): number
  • Param2(): number

IntCurve_PConicTool

Implementation of the ParTool from IntImpParGen for conics of gp, using the class PConic from IntCurve.

Constructors(1)

Static methods(6)

IntCurve_ProjectOnPConicTool

This class provides a tool which computes the parameter of a point near a parametric conic.

Constructors(1)

Static methods(2)

  • FindParameter(C: IntCurve_PConic, 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: IntCurve_PConic, 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

PeriodicInterval

Constructors(3)

Instance methods(8)

Properties(3)