OpenCascade.js
API ReferenceModelingDataTKBRep

BRepAdaptor

OCCT package BRepAdaptor: BRepAdaptor_CompCurve, BRepAdaptor_Curve, BRepAdaptor_Curve2d, BRepAdaptor_Surface.

BRepAdaptor_CompCurve

The Curve from BRepAdaptor allows to use a Wire of the BRep topology like a 3D curve. Warning: With this class of curve, C0 and C1 continuities are not assumed. So be careful with some algorithm! Please note that BRepAdaptor_CompCurve cannot be periodic curve at all (even if it contains single periodic edge).
BRepAdaptor_CompCurve can only work on valid wires where all edges are connected to each other to make a chain.

Constructors(3)

Static methods(2)

Instance methods(33)

  • Shallow copy of adaptor.

  • Initialize(W: TopoDS_Wire, KnotByCurvilinearAbcissa: boolean): void

    Sets the wire <W>.

    Parameters (2)
    • W
    • KnotByCurvilinearAbcissa
  • Initialize(W: TopoDS_Wire, KnotByCurvilinearAbcissa: boolean, First: number, Last: number, Tol: number): void

    Sets wire <W> and trimmed parameter.

    Parameters (5)
    • W
    • KnotByCurvilinearAbcissa
    • First
    • Last
    • Tol
  • Returns the wire.

  • Edge(U: number, E: TopoDS_Edge, UonE: number): { UonE: number }

    returns an edge and one parameter on them corresponding to the parameter U.

    Parameters (3)
    • U
    • E
      Mutated in place; read the updated value from this argument after the call.
    • UonE
    Returns

    A result object with fields:

    • UonE: updated value from the call.
  • FirstParameter(): number
  • LastParameter(): number
  • Returns the number of intervals for continuity . May be one if Continuity(me) >= .

    Parameters (1)
    • S
  • Stores in <T> the parameters bounding the intervals of continuity .
    The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals()

    Parameters (2)
    • T
      Mutated in place; read the updated value from this argument after the call.
    • S
  • Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve

    Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.

    Parameters (3)
    • First
    • Last
    • Tol
  • IsClosed(): boolean
  • IsPeriodic(): boolean
  • Period(): number
  • EvalD0(theU: number): gp_Pnt

    Computes the point of parameter theU on the curve.

    Parameters (1)
    • theU
  • EvalD1(theU: number): Geom_Curve_ResD1

    Computes the point of parameter theU on the curve with its first derivative. Raised if the continuity of the current interval is not C1.

    Parameters (1)
    • theU
  • EvalD2(theU: number): Geom_Curve_ResD2

    Returns the point and the first and second derivatives at parameter theU. Raised if the continuity of the current interval is not C2.

    Parameters (1)
    • theU
  • EvalD3(theU: number): Geom_Curve_ResD3

    Returns the point and the first, second and third derivatives at parameter theU. Raised if the continuity of the current interval is not C3.

    Parameters (1)
    • theU
  • EvalDN(theU: number, theN: number): gp_Vec

    Returns the derivative of order theN at parameter theU. Raised if the continuity of the current interval is not CN. Raised if theN < 1.

    Parameters (2)
    • theU
    • theN
  • Resolution(R3d: number): number

    returns the parametric resolution

    Parameters (1)
    • R3d
  • Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.

  • Degree(): number
  • IsRational(): boolean
  • NbPoles(): number
  • NbKnots(): number

BRepAdaptor_Curve

The Curve from BRepAdaptor allows to use an Edge of the BRep topology like a 3D curve.
It has the methods the class Curve from Adaptor3d.
It is created or Initialized with an Edge. It takes into account local coordinate systems. If the Edge has a 3D curve it is use with priority. If the edge has no 3D curve one of the curves on surface is used. It is possible to enforce using a curve on surface by creating or initialising with an Edge and a Face.

Constructors(3)

Static methods(2)

Instance methods(8)

  • Shallow copy of adaptor.

  • Reset(): void

    Reset currently loaded curve (undone Load()).

  • Sets the Curve <me> to access the geometry of edge <E>.

    Parameters (1)
    • E
  • Sets the Curve <me> to access the geometry of edge <E>. The geometry will be computed using the parametric curve of <E> on the face <F>. An Error is raised if the edge does not have a pcurve on the face.

    Parameters (2)
    • E
    • F
  • Returns the edge.

  • Tolerance(): number

    Returns the edge tolerance.

  • Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve

    Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion.

    Parameters (3)
    • First
    • Last
    • Tol

BRepAdaptor_Curve2d

The Curve2d from BRepAdaptor allows to use an Edge on a Face like a 2d curve (curve in the parametric space).
It has the methods of the class Curve2d from Adpator.
It is created or initialized with a Face and an Edge. The methods are inherited from Curve from Geom2dAdaptor.

Constructors(2)

Static methods(2)

Instance methods(5)

BRepAdaptor_Surface

The Surface from BRepAdaptor allows to use a Face of the BRep topology look like a 3D surface.
It has the methods of the class Surface from Adaptor3d.
It is created or initialized with a Face. It takes into account the local coordinates system.
The u,v parameter range is the minmax value for the restriction, unless the flag restriction is set to false.

Constructors(2)

Static methods(2)

Instance methods(5)