OpenCascade.js
API ReferenceFoundationClassesTKMath

ElCLib

OCCT package ElCLib: ElCLib.

ElCLib

Provides functions for basic geometric computations on elementary curves such as conics and lines in 2D and 3D space. This includes:

  • calculation of a point or derived vector on a 2D or 3D curve where:
  • the curve is provided by the gp package, or defined in reference form (as in the gp package), and
  • the point is defined by a parameter,
  • evaluation of the parameter corresponding to a point on a 2D or 3D curve from gp,
  • various elementary computations which allow you to position parameterized values within the period of a curve. Notes:
  • ElCLib stands for Elementary Curves Library.
  • If the curves provided by the gp package are not explicitly parameterized, they still have an implicit parameterization, analogous to that which they infer for the equivalent Geom or Geom2d curves.

Constructors(1)

Static methods(120)

  • InPeriod(U: number, UFirst: number, ULast: number): number

    Return a value in the range <UFirst, ULast> by adding or removing the period <ULast - UFirst> to . ATTENTION!!! It is expected but not checked that (ULast > UFirst).

    Parameters (3)
    • U
    • UFirst
    • ULast
  • AdjustPeriodic(UFirst: number, ULast: number, Precision: number, U1: number, U2: number): { U1: number; U2: number }

    Adjust U1 and U2 in the parametric range UFirst Ulast of a periodic curve, where ULast - UFirst is its period. To do this, this function:

    • sets U1 in the range [ UFirst, ULast ] by adding/removing the period to/from the value U1, then
    • sets U2 in the range [ U1, U1 + period ] by adding/removing the period to/from the value U2. Precision is used to test the equalities.
    Parameters (5)
    • UFirst
    • ULast
    • Precision
    • U1
    • U2
    Returns

    A result object with fields:

    • U1: updated value from the call.
    • U2: updated value from the call.
  • Value(U: number, L: gp_Lin): gp_Pnt

    For elementary curves (lines, circles and conics) from the gp package, computes the point of parameter U. The result is either:

    • a gp_Pnt point for a curve in 3D space, or
    • a gp_Pnt2d point for a curve in 2D space.
    Parameters (2)
    • U
    • L
  • Value(U: number, C: gp_Circ): gp_Pnt
    Parameters (2)
    • U
    • C
  • Value(U: number, E: gp_Elips): gp_Pnt
    Parameters (2)
    • U
    • E
  • Value(U: number, H: gp_Hypr): gp_Pnt
    Parameters (2)
    • U
    • H
  • Value(U: number, Prb: gp_Parab): gp_Pnt
    Parameters (2)
    • U
    • Prb
  • Value(U: number, L: gp_Lin2d): gp_Pnt2d
    Parameters (2)
    • U
    • L
  • Value(U: number, C: gp_Circ2d): gp_Pnt2d
    Parameters (2)
    • U
    • C
  • Value(U: number, E: gp_Elips2d): gp_Pnt2d
    Parameters (2)
    • U
    • E
  • Value(U: number, H: gp_Hypr2d): gp_Pnt2d
    Parameters (2)
    • U
    • H
  • Value(U: number, Prb: gp_Parab2d): gp_Pnt2d
    Parameters (2)
    • U
    • Prb
  • D1(U: number, L: gp_Lin, P: gp_Pnt, V1: gp_Vec): void

    For elementary curves (lines, circles and conics) from the gp package, computes:

    • the point P of parameter U, and
    • the first derivative vector V1 at this point. The results P and V1 are either:
    • a gp_Pnt point and a gp_Vec vector, for a curve in 3D space, or
    • a gp_Pnt2d point and a gp_Vec2d vector, for a curve in 2D space.
    Parameters (4)
    • U
    • L
    • 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.
  • D1(U: number, C: gp_Circ, P: gp_Pnt, V1: gp_Vec): void
    Parameters (4)
    • U
    • C
    • P
    • V1
  • D1(U: number, E: gp_Elips, P: gp_Pnt, V1: gp_Vec): void
    Parameters (4)
    • U
    • E
    • P
    • V1
  • D1(U: number, H: gp_Hypr, P: gp_Pnt, V1: gp_Vec): void
    Parameters (4)
    • U
    • H
    • P
    • V1
  • D1(U: number, Prb: gp_Parab, P: gp_Pnt, V1: gp_Vec): void
    Parameters (4)
    • U
    • Prb
    • P
    • V1
  • D1(U: number, L: gp_Lin2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • L
    • P
    • V1
  • D1(U: number, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • C
    • P
    • V1
  • D1(U: number, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • E
    • P
    • V1
  • D1(U: number, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • H
    • P
    • V1
  • D1(U: number, Prb: gp_Parab2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • Prb
    • P
    • V1
  • D2(U: number, C: gp_Circ, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void

    For elementary curves (circles and conics) from the gp package, computes:

    • the point P of parameter U, and
    • the first and second derivative vectors V1 and V2 at this point. The results, P, V1 and V2, are either:
    • a gp_Pnt point and two gp_Vec vectors, for a curve in 3D space, or
    • a gp_Pnt2d point and two gp_Vec2d vectors, for a curve in 2D space.
    Parameters (5)
    • U
    • C
    • 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.
  • D2(U: number, E: gp_Elips, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (5)
    • U
    • E
    • P
    • V1
    • V2
  • D2(U: number, H: gp_Hypr, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (5)
    • U
    • H
    • P
    • V1
    • V2
  • D2(U: number, Prb: gp_Parab, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (5)
    • U
    • Prb
    • P
    • V1
    • V2
  • D2(U: number, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (5)
    • U
    • C
    • P
    • V1
    • V2
  • D2(U: number, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (5)
    • U
    • E
    • P
    • V1
    • V2
  • D2(U: number, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (5)
    • U
    • H
    • P
    • V1
    • V2
  • D2(U: number, Prb: gp_Parab2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (5)
    • U
    • Prb
    • P
    • V1
    • V2
  • D3(U: number, C: gp_Circ, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void

    For elementary curves (circles, ellipses and hyperbolae) from the gp package, computes:

    • the point P of parameter U, and
    • the first, second and third derivative vectors V1, V2 and V3 at this point. The results, P, V1, V2 and V3, are either:
    • a gp_Pnt point and three gp_Vec vectors, for a curve in 3D space, or
    • a gp_Pnt2d point and three gp_Vec2d vectors, for a curve in 2D space.
    Parameters (6)
    • U
    • C
    • 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.
  • D3(U: number, E: gp_Elips, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void
    Parameters (6)
    • U
    • E
    • P
    • V1
    • V2
    • V3
  • D3(U: number, H: gp_Hypr, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void
    Parameters (6)
    • U
    • H
    • P
    • V1
    • V2
    • V3
  • D3(U: number, C: gp_Circ2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void
    Parameters (6)
    • U
    • C
    • P
    • V1
    • V2
    • V3
  • D3(U: number, E: gp_Elips2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void
    Parameters (6)
    • U
    • E
    • P
    • V1
    • V2
    • V3
  • D3(U: number, H: gp_Hypr2d, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void

    In the following functions N is the order of derivation and should be greater than 0.

    Parameters (6)
    • U
    • H
    • 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(U: number, L: gp_Lin, N: number): gp_Vec

    For elementary curves (lines, circles and conics) from the gp package, computes the vector corresponding to the Nth derivative at the point of parameter U. The result is either:

    • a gp_Vec vector for a curve in 3D space, or
    • a gp_Vec2d vector for a curve in 2D space. In the following functions N is the order of derivation and should be greater than 0
    Parameters (3)
    • U
    • L
    • N
  • DN(U: number, C: gp_Circ, N: number): gp_Vec
    Parameters (3)
    • U
    • C
    • N
  • DN(U: number, E: gp_Elips, N: number): gp_Vec
    Parameters (3)
    • U
    • E
    • N
  • DN(U: number, H: gp_Hypr, N: number): gp_Vec
    Parameters (3)
    • U
    • H
    • N
  • DN(U: number, Prb: gp_Parab, N: number): gp_Vec
    Parameters (3)
    • U
    • Prb
    • N
  • DN(U: number, L: gp_Lin2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • L
    • N
  • DN(U: number, C: gp_Circ2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • C
    • N
  • DN(U: number, E: gp_Elips2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • E
    • N
  • DN(U: number, H: gp_Hypr2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • H
    • N
  • DN(U: number, Prb: gp_Parab2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • Prb
    • N
  • LineValue(U: number, Pos: gp_Ax1): gp_Pnt

    Curve evaluation The following basis functions compute the derivatives on elementary curves defined by their geometric characteristics. These functions can be called without constructing a conic from package gp. They are called by the previous functions. Example : A circle is defined by its position and its radius.

    Parameters (2)
    • U
    • Pos
  • LineValue(U: number, Pos: gp_Ax2d): gp_Pnt2d
    Parameters (2)
    • U
    • Pos
  • CircleValue(U: number, Pos: gp_Ax2, Radius: number): gp_Pnt
    Parameters (3)
    • U
    • Pos
    • Radius
  • CircleValue(U: number, Pos: gp_Ax22d, Radius: number): gp_Pnt2d
    Parameters (3)
    • U
    • Pos
    • Radius
  • EllipseValue(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number): gp_Pnt
    Parameters (4)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
  • EllipseValue(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number): gp_Pnt2d
    Parameters (4)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
  • HyperbolaValue(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number): gp_Pnt
    Parameters (4)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
  • HyperbolaValue(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number): gp_Pnt2d
    Parameters (4)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
  • ParabolaValue(U: number, Pos: gp_Ax2, Focal: number): gp_Pnt
    Parameters (3)
    • U
    • Pos
    • Focal
  • ParabolaValue(U: number, Pos: gp_Ax22d, Focal: number): gp_Pnt2d
    Parameters (3)
    • U
    • Pos
    • Focal
  • LineD1(U: number, Pos: gp_Ax1, P: gp_Pnt, V1: gp_Vec): void
    Parameters (4)
    • U
    • Pos
    • P
    • V1
  • LineD1(U: number, Pos: gp_Ax2d, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (4)
    • U
    • Pos
    • P
    • V1
  • CircleD1(U: number, Pos: gp_Ax2, Radius: number, P: gp_Pnt, V1: gp_Vec): void
    Parameters (5)
    • U
    • Pos
    • Radius
    • P
    • V1
  • CircleD1(U: number, Pos: gp_Ax22d, Radius: number, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (5)
    • U
    • Pos
    • Radius
    • P
    • V1
  • EllipseD1(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec): void
    Parameters (6)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
  • EllipseD1(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (6)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
  • HyperbolaD1(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec): void
    Parameters (6)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
  • HyperbolaD1(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (6)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
  • ParabolaD1(U: number, Pos: gp_Ax2, Focal: number, P: gp_Pnt, V1: gp_Vec): void
    Parameters (5)
    • U
    • Pos
    • Focal
    • P
    • V1
  • ParabolaD1(U: number, Pos: gp_Ax22d, Focal: number, P: gp_Pnt2d, V1: gp_Vec2d): void
    Parameters (5)
    • U
    • Pos
    • Focal
    • P
    • V1
  • CircleD2(U: number, Pos: gp_Ax2, Radius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (6)
    • U
    • Pos
    • Radius
    • P
    • V1
    • V2
  • CircleD2(U: number, Pos: gp_Ax22d, Radius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (6)
    • U
    • Pos
    • Radius
    • P
    • V1
    • V2
  • EllipseD2(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (7)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
  • EllipseD2(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (7)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
  • HyperbolaD2(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (7)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
  • HyperbolaD2(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (7)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
  • ParabolaD2(U: number, Pos: gp_Ax2, Focal: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
    Parameters (6)
    • U
    • Pos
    • Focal
    • P
    • V1
    • V2
  • ParabolaD2(U: number, Pos: gp_Ax22d, Focal: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d): void
    Parameters (6)
    • U
    • Pos
    • Focal
    • P
    • V1
    • V2
  • CircleD3(U: number, Pos: gp_Ax2, Radius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void
    Parameters (7)
    • U
    • Pos
    • Radius
    • P
    • V1
    • V2
    • V3
  • CircleD3(U: number, Pos: gp_Ax22d, Radius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void
    Parameters (7)
    • U
    • Pos
    • Radius
    • P
    • V1
    • V2
    • V3
  • EllipseD3(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void
    Parameters (8)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
    • V3
  • EllipseD3(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void
    Parameters (8)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
    • V3
  • HyperbolaD3(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec): void
    Parameters (8)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • P
    • V1
    • V2
    • V3
  • HyperbolaD3(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d): void

    In the following functions N is the order of derivation and should be greater than 0.

    Parameters (8)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • 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.
  • LineDN(U: number, Pos: gp_Ax1, N: number): gp_Vec

    In the following functions N is the order of derivation and should be greater than 0.

    Parameters (3)
    • U
    • Pos
    • N
  • LineDN(U: number, Pos: gp_Ax2d, N: number): gp_Vec2d
    Parameters (3)
    • U
    • Pos
    • N
  • CircleDN(U: number, Pos: gp_Ax2, Radius: number, N: number): gp_Vec
    Parameters (4)
    • U
    • Pos
    • Radius
    • N
  • CircleDN(U: number, Pos: gp_Ax22d, Radius: number, N: number): gp_Vec2d
    Parameters (4)
    • U
    • Pos
    • Radius
    • N
  • EllipseDN(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, N: number): gp_Vec
    Parameters (5)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • N
  • EllipseDN(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, N: number): gp_Vec2d
    Parameters (5)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • N
  • HyperbolaDN(U: number, Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, N: number): gp_Vec
    Parameters (5)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • N
  • HyperbolaDN(U: number, Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, N: number): gp_Vec2d
    Parameters (5)
    • U
    • Pos
    • MajorRadius
    • MinorRadius
    • N
  • ParabolaDN(U: number, Pos: gp_Ax2, Focal: number, N: number): gp_Vec
    Parameters (4)
    • U
    • Pos
    • Focal
    • N
  • ParabolaDN(U: number, Pos: gp_Ax22d, Focal: number, N: number): gp_Vec2d

    The following functions compute the parametric value corresponding to a given point on a elementary curve. The point should be on the curve.

    Parameters (4)
    • U
    • Pos
    • Focal
    • N
  • Parameter(L: gp_Lin, P: gp_Pnt): number

    Computes the parameter value of the point P on the given curve. Note: In its local coordinate system, the parametric equation of the curve is given by the following:

    • for the line L: P(U) = Po + U*Vo where Po is the origin and Vo the unit vector of its positioning axis.
    • for the circle C: X(U) = Radiusstd::cos(U), Y(U) = RadiusSin(U)
    • for the ellipse E: X(U) = MajorRadiusstd::cos(U). Y(U) = MinorRadiusSin(U)
    • for the hyperbola H: X(U) = MajorRadiusCh(U), Y(U) = MinorRadiusSh(U)
    • for the parabola Prb: X(U) = U**2 / (2*p) Y(U) = U where p is the distance between the focus and the directrix. Warning The point P must be on the curve. These functions are not protected, however, and if point P is not on the curve, an exception may be raised.
    Parameters (2)
    • L
    • P
  • Parameter(L: gp_Lin2d, P: gp_Pnt2d): number

    parametrization P (U) = L.Location() + U * L.Direction()

    Parameters (2)
    • L
    • P
  • Parameter(C: gp_Circ, P: gp_Pnt): number
    Parameters (2)
    • C
    • P
  • Parameter(C: gp_Circ2d, P: gp_Pnt2d): number

    parametrization In the local coordinate system of the circle X (U) = Radius * Cos (U) Y (U) = Radius * Sin (U)

    Parameters (2)
    • C
    • P
  • Parameter(E: gp_Elips, P: gp_Pnt): number
    Parameters (2)
    • E
    • P
  • Parameter(E: gp_Elips2d, P: gp_Pnt2d): number

    parametrization In the local coordinate system of the Ellipse X (U) = MajorRadius * Cos (U) Y (U) = MinorRadius * Sin (U)

    Parameters (2)
    • E
    • P
  • Parameter(H: gp_Hypr, P: gp_Pnt): number
    Parameters (2)
    • H
    • P
  • Parameter(H: gp_Hypr2d, P: gp_Pnt2d): number

    parametrization In the local coordinate system of the Hyperbola X (U) = MajorRadius * Ch (U) Y (U) = MinorRadius * Sh (U)

    Parameters (2)
    • H
    • P
  • Parameter(Prb: gp_Parab, P: gp_Pnt): number
    Parameters (2)
    • Prb
    • P
  • Parameter(Prb: gp_Parab2d, P: gp_Pnt2d): number

    parametrization In the local coordinate system of the parabola Y**2 = (2*P) * X where P is the distance between the focus and the directrix.

    Parameters (2)
    • Prb
    • P
  • LineParameter(Pos: gp_Ax1, P: gp_Pnt): number
    Parameters (2)
    • Pos
    • P
  • LineParameter(Pos: gp_Ax2d, P: gp_Pnt2d): number

    parametrization P (U) = L.Location() + U * L.Direction()

    Parameters (2)
    • Pos
    • P
  • CircleParameter(Pos: gp_Ax2, P: gp_Pnt): number
    Parameters (2)
    • Pos
    • P
  • Pos is the Axis of the Circle parametrization In the local coordinate system of the circle X (U) = Radius * Cos (U) Y (U) = Radius * Sin (U).

    Parameters (2)
    • Pos
    • P
  • EllipseParameter(Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt): number
    Parameters (4)
    • Pos
    • MajorRadius
    • MinorRadius
    • P
  • EllipseParameter(Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d): number

    Pos is the Axis of the Ellipse parametrization In the local coordinate system of the Ellipse X (U) = MajorRadius * Cos (U) Y (U) = MinorRadius * Sin (U).

    Parameters (4)
    • Pos
    • MajorRadius
    • MinorRadius
    • P
  • HyperbolaParameter(Pos: gp_Ax2, MajorRadius: number, MinorRadius: number, P: gp_Pnt): number
    Parameters (4)
    • Pos
    • MajorRadius
    • MinorRadius
    • P
  • HyperbolaParameter(Pos: gp_Ax22d, MajorRadius: number, MinorRadius: number, P: gp_Pnt2d): number

    Pos is the Axis of the Hyperbola parametrization In the local coordinate system of the Hyperbola X (U) = MajorRadius * Ch (U) Y (U) = MinorRadius * Sh (U).

    Parameters (4)
    • Pos
    • MajorRadius
    • MinorRadius
    • P
  • ParabolaParameter(Pos: gp_Ax2, P: gp_Pnt): number
    Parameters (2)
    • Pos
    • P
  • Pos is the mirror axis of the parabola parametrization In the local coordinate system of the parabola Y**2 = (2*P) * X where P is the distance between the focus and the directrix. The following functions build a 3d curve from a 2d curve at a given position defined with an Ax2.

    Parameters (2)
    • Pos
    • P
  • Parameters (2)
    • Pos
    • P
  • Parameters (2)
    • Pos
    • V
  • Parameters (2)
    • Pos
    • V
  • Parameters (2)
    • Pos
    • A
  • Parameters (2)
    • Pos
    • A
  • Parameters (2)
    • Pos
    • L
  • Parameters (2)
    • Pos
    • C
  • Parameters (2)
    • Pos
    • E
  • Parameters (2)
    • Pos
    • H
  • These functions build a 3D geometric entity from a 2D geometric entity. The "X Axis" and the "Y Axis" of the global coordinate system (i.e. 2D space) are lined up respectively with the "X Axis" and "Y Axis" of the 3D coordinate system, Pos.

    Parameters (2)
    • Pos
    • Prb