OpenCascade.js
API ReferenceModelingDataTKBRep

BRepLProp

OCCT package BRepLProp: BRepLProp, BRepLProp_CLProps, BRepLProp_SLProps, BRepLProp_SurfaceTool.

BRepLProp

These global functions compute the degree of continuity of a curve built by concatenation of two edges at their junction point.

Constructors(1)

Static methods(2)

BRepLProp_CLProps

Implementation class for computing local properties of a curve: point, derivatives up to order 3, tangent, curvature, normal, and centre of curvature. Parameterized by geometric types (Pnt/Vec/Dir) and curve type.

Constructors(3)

  • constructor(N: number, Resolution: number): BRepLProp_CLProps

    Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and when the functions "set" will be done.

    Parameters (2)
    • N
    • Resolution
  • constructor(C: BRepAdaptor_Curve, N: number, Resolution: number): BRepLProp_CLProps

    Initializes the local properties of the curve The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).

    Parameters (3)
    • C
    • N
    • Resolution
  • constructor(C: BRepAdaptor_Curve, U: number, N: number, Resolution: number): BRepLProp_CLProps

    Same as previous constructor but here the parameter is set to the value . All the computations done will be related to and .

    Parameters (4)
    • C
    • U
    • N
    • Resolution

Instance methods(11)

  • SetParameter(U: number): void

    Initializes the local properties of the curve for the parameter value .

    Parameters (1)
    • U
  • Initializes the local properties of the curve for the new curve.

    Parameters (1)
    • C
  • Returns the Point.

  • Returns the first derivative. The derivative is computed if it has not been yet.

  • Returns the second derivative. The derivative is computed if it has not been yet.

  • Returns the third derivative. The derivative is computed if it has not been yet.

  • IsTangentDefined(): boolean

    Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.

  • Tangent(D: gp_Dir): void

    output the tangent direction <D>.

    Parameters (1)
    • D
  • Curvature(): number

    Returns the curvature.

  • Normal(N: gp_Dir): void

    Returns the normal direction <N>.

    Parameters (1)
    • N
  • Returns the centre of curvature.
    .

    Parameters (1)
    • P

BRepLProp_SLProps

Template class for computing local properties of a 3D surface: point, first and second derivatives, tangent directions, normal, and curvature analysis (max, min, mean, Gaussian).

Constructors(3)

  • constructor(N: number, Resolution: number): BRepLProp_SLProps

    idem as previous constructor but without setting the value of parameters and <V> and the surface. the surface can have an empty constructor.

    Parameters (2)
    • N
    • Resolution
  • constructor(S: BRepAdaptor_Surface, N: number, Resolution: number): BRepLProp_SLProps

    idem as previous constructor but without setting the value of parameters and <V>.

    Parameters (3)
    • S
    • N
    • Resolution
  • constructor(S: BRepAdaptor_Surface, U: number, V: number, N: number, Resolution: number): BRepLProp_SLProps

    Initializes the local properties of the surface for the parameter values (, <V>). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).

    Parameters (5)
    • S
    • U
    • V
    • N
    • Resolution

Instance methods(21)

  • Initializes the local properties of the surface S for the new surface.

    Parameters (1)
    • S
  • SetParameters(U: number, V: number): void

    Initializes the local properties of the surface S for the new parameter values (, <V>).

    Parameters (2)
    • U
    • V
  • Returns the point.

  • Returns the first U derivative. The derivative is computed if it has not been yet.

  • Returns the first V derivative. The derivative is computed if it has not been yet.

  • Returns the second U derivatives The derivative is computed if it has not been yet.

  • Returns the second V derivative. The derivative is computed if it has not been yet.

  • Returns the second UV cross-derivative. The derivative is computed if it has not been yet.

  • returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.

  • TangentU(D: gp_Dir): void

    Returns the tangent direction <D> on the iso-V.

    Parameters (1)
    • D
      Mutated in place; read the updated value from this argument after the call.
  • returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.

  • TangentV(D: gp_Dir): void

    Returns the tangent direction <D> on the iso-V.

    Parameters (1)
    • D
      Mutated in place; read the updated value from this argument after the call.
  • IsNormalDefined(): boolean

    Tells if the normal is defined.

  • Returns the normal direction.

  • returns True if the curvature is defined.

  • IsUmbilic(): boolean

    returns True if the point is umbilic (i.e. if the curvature is constant).

  • MaxCurvature(): number

    Returns the maximum curvature.

  • MinCurvature(): number

    Returns the minimum curvature.

  • CurvatureDirections(MaxD: gp_Dir, MinD: gp_Dir): void

    Returns the direction of the maximum and minimum curvature <MaxD> and <MinD>.

    Parameters (2)
    • MaxD
      Mutated in place; read the updated value from this argument after the call.
    • MinD
      Mutated in place; read the updated value from this argument after the call.
  • MeanCurvature(): number

    Returns the mean curvature.

  • Returns the Gaussian curvature.

BRepLProp_SurfaceTool

Constructors(1)

Static methods(6)

  • Value(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt): void

    Computes the point.
    of parameter and <V> on the Surface .

    Parameters (4)
    • S
    • U
    • V
    • P
      Mutated in place; read the updated value from this argument after the call.
  • D1(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec): void

    Computes the point.
    and first derivative <D1*> of parameter and <V> on the Surface .

    Parameters (6)
    • S
    • U
    • V
    • P
      Mutated in place; read the updated value from this argument after the call.
    • D1U
      Mutated in place; read the updated value from this argument after the call.
    • D1V
      Mutated in place; read the updated value from this argument after the call.
  • D2(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec): void

    Computes the point.
    , the first derivative <D1*> and second derivative <D2*> of parameter and <V> on the Surface .

    Parameters (9)
    • S
    • U
    • V
    • P
      Mutated in place; read the updated value from this argument after the call.
    • D1U
      Mutated in place; read the updated value from this argument after the call.
    • D1V
      Mutated in place; read the updated value from this argument after the call.
    • D2U
      Mutated in place; read the updated value from this argument after the call.
    • D2V
      Mutated in place; read the updated value from this argument after the call.
    • DUV
      Mutated in place; read the updated value from this argument after the call.
  • DN(S: BRepAdaptor_Surface, U: number, V: number, IU: number, IV: number): gp_Vec
    Parameters (5)
    • S
    • U
    • V
    • IU
    • IV
  • returns the order of continuity of the Surface . returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable.

    Parameters (1)
    • S
  • Bounds(S: BRepAdaptor_Surface, U1: number, V1: number, U2: number, V2: number): { U1: number; V1: number; U2: number; V2: number }

    returns the bounds of the Surface.

    Parameters (5)
    • S
    • U1
    • V1
    • U2
    • V2
    Returns

    A result object with fields:

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