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)
Creates an undefined Curve with no Wire loaded.
- constructor(W: TopoDS_Wire, KnotByCurvilinearAbcissa?: boolean): BRepAdaptor_CompCurveParameters (2)
WKnotByCurvilinearAbcissa
- constructor(W: TopoDS_Wire, KnotByCurvilinearAbcissa: boolean, First: number, Last: number, Tol: number): BRepAdaptor_CompCurve
Creates a Curve to access the geometry of edge <W>.
Parameters (5)WKnotByCurvilinearAbcissaFirstLastTol
Static methods(2)
- get_type_name(): string
Instance methods(33)
Shallow copy of adaptor.
- Initialize(W: TopoDS_Wire, KnotByCurvilinearAbcissa: boolean): void
Sets the wire <W>.
Parameters (2)WKnotByCurvilinearAbcissa
- Initialize(W: TopoDS_Wire, KnotByCurvilinearAbcissa: boolean, First: number, Last: number, Tol: number): void
Sets wire <W> and trimmed parameter.
Parameters (5)WKnotByCurvilinearAbcissaFirstLastTol
- Wire(): TopoDS_Wire
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)UE—Mutated in place; read the updated value from this argument after the call.UonE
ReturnsA result object with fields:
UonE: updated value from the call.
- FirstParameter(): number
- LastParameter(): number
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
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)FirstLastTol
- IsClosed(): boolean
- IsPeriodic(): boolean
- Period(): number
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
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)theUtheN
- 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)
Creates an undefined Curve with no Edge loaded.
Creates a Curve to access the geometry of edge <E>.
Parameters (1)E
Creates a Curve 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)EF
Static methods(2)
- get_type_name(): string
Instance methods(8)
Shallow copy of adaptor.
- Reset(): void
Reset currently loaded curve (undone
Load()). - Initialize(E: TopoDS_Edge): void
Sets the Curve <me> to access the geometry of edge <E>.
Parameters (1)E
- Initialize(E: TopoDS_Edge, F: TopoDS_Face): void
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)EF
- Edge(): TopoDS_Edge
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)FirstLastTol
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)
Creates an uninitialized curve2d.
Creates with the pcurve of <E> on <F>.
Parameters (2)EF
Static methods(2)
- get_type_name(): string
Instance methods(5)
Shallow copy of adaptor.
- Initialize(E: TopoDS_Edge, F: TopoDS_Face): void
Initialize with the pcurve of <E> on <F>.
Parameters (2)EF
- Edge(): TopoDS_Edge
Returns the Edge.
- Face(): TopoDS_Face
Returns the Face.
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)
Creates an undefined surface with no face loaded.
- constructor(F: TopoDS_Face, R?: boolean): BRepAdaptor_Surface
Creates a surface to access the geometry of <F>. If <Restriction> is true the parameter range is the parameter range in the UV space of the restriction.
Parameters (2)FR
Static methods(2)
- get_type_name(): string
Instance methods(5)
Shallow copy of adaptor.
- Initialize(F: TopoDS_Face, Restriction?: boolean): void
Sets the surface to the geometry of <F>.
Parameters (2)FRestriction
- Face(): TopoDS_Face
Returns the face.
- Tolerance(): number
Returns the face tolerance.