OCC.Adaptor2d module

class OCC.Adaptor2d.Adaptor2d_Curve2d(*args, **kwargs)

Bases: object

BSpline()
Return type:Handle_Geom2d_BSplineCurve
Bezier()
Return type:Handle_Geom2d_BezierCurve
Circle()
Return type:gp_Circ2d
Continuity()
Return type:GeomAbs_Shape
D0()
  • Computes the point of parameter U on the curve.
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
Return type:

void

D1()
  • Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V (gp_Vec2d) –
Return type:

void

D2()
  • Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
Return type:

void

D3()
  • Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • V3 (gp_Vec2d) –
Return type:

void

DN()
  • The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters:
  • U (float) –
  • N (Standard_Integer) –
Return type:

gp_Vec2d

Degree()
Return type:int
Delete()
Return type:void
Ellipse()
Return type:gp_Elips2d
FirstParameter()
Return type:float
GetType()
  • Returns the type of the curve in the current interval : Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
Return type:GeomAbs_CurveType
Hyperbola()
Return type:gp_Hypr2d
Intervals()
  • Stores in <T> the parameters bounding the intervals of continuity <S>. The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

IsClosed()
Return type:bool
IsPeriodic()
Return type:bool
IsRational()
Return type:bool
LastParameter()
Return type:float
Line()
Return type:gp_Lin2d
NbIntervals()
  • If necessary, breaks the curve in intervals of continuity <S>. And returns the number of intervals.
Parameters:S (GeomAbs_Shape) –
Return type:int
NbKnots()
Return type:int
NbPoles()
Return type:int
NbSamples()
Return type:int
Parabola()
Return type:gp_Parab2d
Period()
Return type:float
Resolution()
  • Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters:R3d (float) –
Return type:float
Trim()
  • Returns a curve equivalent of <self> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>
Parameters:
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor2d_HCurve2d

Value()
  • Computes the point of parameter U on the curve.
Parameters:U (float) –
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.Adaptor2d.Adaptor2d_HCurve2d(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

BSpline()
Return type:Handle_Geom2d_BSplineCurve
Bezier()
Return type:Handle_Geom2d_BezierCurve
Circle()
Return type:gp_Circ2d
Continuity()
Return type:GeomAbs_Shape
Curve2d()
  • Returns a reference to the Curve2d inside the HCurve2d.
Return type:Adaptor2d_Curve2d
D0()
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
Return type:

None

D1()
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V (gp_Vec2d) –
Return type:

None

D2()
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
Return type:

None

D3()
Parameters:
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • V3 (gp_Vec2d) –
Return type:

None

DN()
Parameters:
  • U (float) –
  • N (Standard_Integer) –
Return type:

gp_Vec2d

Degree()
Return type:int
Ellipse()
Return type:gp_Elips2d
FirstParameter()
Return type:float
GetHandle()

Adaptor2d_HCurve2d_GetHandle(Adaptor2d_HCurve2d self) -> Handle_Adaptor2d_HCurve2d

GetType()
Return type:GeomAbs_CurveType
Hyperbola()
Return type:gp_Hypr2d
Intervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

None

IsClosed()
Return type:bool
IsPeriodic()
Return type:bool
IsRational()
Return type:bool
LastParameter()
Return type:float
Line()
Return type:gp_Lin2d
NbIntervals()
Parameters:S (GeomAbs_Shape) –
Return type:int
NbKnots()
Return type:int
NbPoles()
Return type:int
Parabola()
Return type:gp_Parab2d
Period()
Return type:float
Resolution()
Parameters:R3d (float) –
Return type:float
Trim()
  • If <First> >= <Last>
Parameters:
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor2d_HCurve2d

Value()
Parameters:U (float) –
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.Adaptor2d.Adaptor2d_HLine2d(*args)

Bases: OCC.Adaptor2d.Adaptor2d_HCurve2d

ChangeCurve2d()
Return type:Adaptor2d_Line2d
GetHandle()

Adaptor2d_HLine2d_GetHandle(Adaptor2d_HLine2d self) -> Handle_Adaptor2d_HLine2d

Set()
Parameters:C (Adaptor2d_Line2d &) –
Return type:None
thisown

The membership flag

class OCC.Adaptor2d.Adaptor2d_Line2d(*args)

Bases: OCC.Adaptor2d.Adaptor2d_Curve2d

Load()
Parameters:
  • L (gp_Lin2d) –
  • L
  • UFirst (float) –
  • ULast (float) –
Return type:

None

Return type:

None

thisown

The membership flag

class OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Adaptor2d.Handle_Adaptor2d_HLine2d(*args)

Bases: OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Adaptor2d.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()