OCC.Adaptor3d module

class OCC.Adaptor3d.Adaptor3d_Curve(*args, **kwargs)

Bases: object

BSpline()
Return type:Handle_Geom_BSplineCurve
Bezier()
Return type:Handle_Geom_BezierCurve
Circle()
Return type:gp_Circ
Continuity()
Return type:GeomAbs_Shape
D0()
  • Computes the point of parameter U on the curve.
Parameters:
  • U (float) –
  • P (gp_Pnt) –
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_Pnt) –
  • V (gp_Vec) –
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_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
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_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
  • V3 (gp_Vec) –
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_Vec

Degree()
Return type:int
Delete()
Return type:void
Ellipse()
Return type:gp_Elips
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_Hypr
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_Lin
NbIntervals()
  • Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
NbKnots()
Return type:int
NbPoles()
Return type:int
Parabola()
Return type:gp_Parab
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_Adaptor3d_HCurve

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

The membership flag

class OCC.Adaptor3d.Adaptor3d_CurveOnSurface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

ChangeCurve()
Return type:Handle_Adaptor2d_HCurve2d
ChangeSurface()
Return type:Handle_Adaptor3d_HSurface
GetCurve()
Return type:Handle_Adaptor2d_HCurve2d
GetSurface()
Return type:Handle_Adaptor3d_HSurface
Load()
  • Changes the surface.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
  • Changes the 2d curve.
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:None
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_HCurve(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

BSpline()
Return type:Handle_Geom_BSplineCurve
Bezier()
Return type:Handle_Geom_BezierCurve
Circle()
Return type:gp_Circ
Continuity()
Return type:GeomAbs_Shape
Curve()
  • Returns a pointer to the Curve inside the HCurve.
Return type:Adaptor3d_Curve
D0()
Parameters:
  • U (float) –
  • P (gp_Pnt) –
Return type:

None

D1()
Parameters:
  • U (float) –
  • P (gp_Pnt) –
  • V (gp_Vec) –
Return type:

None

D2()
Parameters:
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
Return type:

None

D3()
Parameters:
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
  • V3 (gp_Vec) –
Return type:

None

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

gp_Vec

Degree()
Return type:int
Ellipse()
Return type:gp_Elips
FirstParameter()
Return type:float
GetCurve()
  • Returns a pointer to the Curve inside the HCurve.
Return type:Adaptor3d_Curve
GetHandle()

Adaptor3d_HCurve_GetHandle(Adaptor3d_HCurve self) -> Handle_Adaptor3d_HCurve

GetType()
Return type:GeomAbs_CurveType
Hyperbola()
Return type:gp_Hypr
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:

None

IsClosed()
Return type:bool
IsPeriodic()
Return type:bool
IsRational()
Return type:bool
LastParameter()
Return type:float
Line()
Return type:gp_Lin
NbIntervals()
Parameters:S (GeomAbs_Shape) –
Return type:int
NbKnots()
Return type:int
NbPoles()
Return type:int
Parabola()
Return type:gp_Parab
Period()
Return type:float
Resolution()
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_Adaptor3d_HCurve

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

The membership flag

class OCC.Adaptor3d.Adaptor3d_HCurveOnSurface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HCurve

ChangeCurve()
Return type:Adaptor3d_CurveOnSurface
GetHandle()

Adaptor3d_HCurveOnSurface_GetHandle(Adaptor3d_HCurveOnSurface self) -> Handle_Adaptor3d_HCurveOnSurface

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

The membership flag

class OCC.Adaptor3d.Adaptor3d_HIsoCurve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HCurve

ChangeCurve()
Return type:Adaptor3d_IsoCurve
GetHandle()

Adaptor3d_HIsoCurve_GetHandle(Adaptor3d_HIsoCurve self) -> Handle_Adaptor3d_HIsoCurve

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

The membership flag

class OCC.Adaptor3d.Adaptor3d_HOffsetCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_HCurve2d

ChangeCurve2d()
Return type:Adaptor3d_OffsetCurve
GetHandle()

Adaptor3d_HOffsetCurve_GetHandle(Adaptor3d_HOffsetCurve self) -> Handle_Adaptor3d_HOffsetCurve

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

The membership flag

class OCC.Adaptor3d.Adaptor3d_HSurface(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

AxeOfRevolution()
Return type:gp_Ax1
BSpline()
Return type:Handle_Geom_BSplineSurface
BasisCurve()
Return type:Handle_Adaptor3d_HCurve
BasisSurface()
Return type:Handle_Adaptor3d_HSurface
Bezier()
Return type:Handle_Geom_BezierSurface
Cone()
Return type:gp_Cone
Cylinder()
Return type:gp_Cylinder
D0()
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
Return type:

None

D1()
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
Return type:

None

D2()
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

None

D3()
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

None

DN()
Parameters:
  • U (float) –
  • V (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

Direction()
Return type:gp_Dir
FirstUParameter()
Return type:float
FirstVParameter()
Return type:float
GetHandle()

Adaptor3d_HSurface_GetHandle(Adaptor3d_HSurface self) -> Handle_Adaptor3d_HSurface

GetType()
Return type:GeomAbs_SurfaceType
IsUClosed()
Return type:bool
IsUPeriodic()
Return type:bool
IsURational()
Return type:bool
IsVClosed()
Return type:bool
IsVPeriodic()
Return type:bool
IsVRational()
Return type:bool
LastUParameter()
Return type:float
LastVParameter()
Return type:float
NbUIntervals()
Parameters:S (GeomAbs_Shape) –
Return type:int
NbUKnots()
Return type:int
NbUPoles()
Return type:int
NbVIntervals()
Parameters:S (GeomAbs_Shape) –
Return type:int
NbVKnots()
Return type:int
NbVPoles()
Return type:int
OffsetValue()
Return type:float
Plane()
Return type:gp_Pln
Sphere()
Return type:gp_Sphere
Surface()
  • Returns a reference to the Surface inside the HSurface.
Return type:Adaptor3d_Surface
Torus()
Return type:gp_Torus
UContinuity()
Return type:GeomAbs_Shape
UDegree()
Return type:int
UIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

None

UPeriod()
Return type:float
UResolution()
Parameters:R3d (float) –
Return type:float
UTrim()
Parameters:
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

VContinuity()
Return type:GeomAbs_Shape
VDegree()
Return type:int
VIntervals()
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

None

VPeriod()
Return type:float
VResolution()
Parameters:R3d (float) –
Return type:float
VTrim()
Parameters:
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

Value()
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Pnt

thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_HSurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HSurface

ChangeSurface()
Return type:Adaptor3d_SurfaceOfLinearExtrusion
GetHandle()

Adaptor3d_HSurfaceOfLinearExtrusion_GetHandle(Adaptor3d_HSurfaceOfLinearExtrusion self) -> Handle_Adaptor3d_HSurfaceOfLinearExtrusion

Set()
Parameters:S (Adaptor3d_SurfaceOfLinearExtrusion &) –
Return type:None
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_HSurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HSurface

ChangeSurface()
Return type:Adaptor3d_SurfaceOfRevolution
GetHandle()

Adaptor3d_HSurfaceOfRevolution_GetHandle(Adaptor3d_HSurfaceOfRevolution self) -> Handle_Adaptor3d_HSurfaceOfRevolution

Set()
Parameters:S (Adaptor3d_SurfaceOfRevolution &) –
Return type:None
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_HSurfaceTool(*args, **kwargs)

Bases: object

static AxeOfRevolution(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Ax1
static BSpline(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Geom_BSplineSurface
static BasisCurve(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Adaptor3d_HCurve
static BasisSurface(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Adaptor3d_HSurface
static Bezier(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Geom_BezierSurface
static Cone(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Cone
static Cylinder(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Cylinder
static D0(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
Return type:

void

static D1(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1u (gp_Vec) –
  • D1v (gp_Vec) –
Return type:

void

static D2(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

void

static D3(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

void

static DN(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static Direction(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Dir
static FirstUParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static FirstVParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static GetType(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:GeomAbs_SurfaceType
static IsUClosed(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
static IsUPeriodic(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
static IsVClosed(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
static IsVPeriodic(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
static LastUParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static LastVParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static NbSamplesU(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • S
  • u1 (float) –
  • u2 (float) –
Return type:

int

Return type:

int

static NbSamplesV(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • S
  • v1 (float) –
  • v2 (float) –
Return type:

int

Return type:

int

static NbUIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

static NbVIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

static OffsetValue(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static Plane(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Pln
static Sphere(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Sphere
static Torus(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Torus
static UIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

static UPeriod(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static UResolution(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

static UTrim(*args)
  • If <First> >= <Last>
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

static VIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

static VPeriod(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
static VResolution(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

static VTrim(*args)
  • If <First> >= <Last>
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

static Value(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
Return type:

gp_Pnt

thisown

The membership flag

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_AxeOfRevolution(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Ax1
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_BSpline(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Geom_BSplineSurface
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_BasisCurve(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Adaptor3d_HCurve
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_BasisSurface(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Adaptor3d_HSurface
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Bezier(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:Handle_Geom_BezierSurface
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Cone(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Cone
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Cylinder(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Cylinder
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_D0(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_D1(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1u (gp_Vec) –
  • D1v (gp_Vec) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_D2(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_D3(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_DN(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Direction(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Dir
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_FirstUParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_FirstVParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_GetType(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:GeomAbs_SurfaceType
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_IsUClosed(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_IsUPeriodic(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_IsVClosed(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_IsVPeriodic(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:bool
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_LastUParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_LastVParameter(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_NbSamplesU(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • S
  • u1 (float) –
  • u2 (float) –
Return type:

int

Return type:

int

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_NbSamplesV(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • S
  • v1 (float) –
  • v2 (float) –
Return type:

int

Return type:

int

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_NbUIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_NbVIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_OffsetValue(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Plane(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Pln
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Sphere(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Sphere
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Torus(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:gp_Torus
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_UIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_UPeriod(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_UResolution(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_UTrim(*args)
  • If <First> >= <Last>
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_VIntervals(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_VPeriod(*args)
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
OCC.Adaptor3d.Adaptor3d_HSurfaceTool_VResolution(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_VTrim(*args)
  • If <First> >= <Last>
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • First (float) –
  • Last (float) –
  • Tol (float) –
Return type:

Handle_Adaptor3d_HSurface

OCC.Adaptor3d.Adaptor3d_HSurfaceTool_Value(*args)
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
Return type:

gp_Pnt

class OCC.Adaptor3d.Adaptor3d_HVertex(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

Adaptor3d_HVertex_GetHandle(Adaptor3d_HVertex self) -> Handle_Adaptor3d_HVertex

IsSame()
Parameters:Other (Handle_Adaptor3d_HVertex &) –
Return type:bool
Orientation()
Return type:TopAbs_Orientation
Parameter()
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:float
Resolution()
  • Parametric resolution (2d).
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:float
Value()
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_InterFunc(*args)

Bases: object

Derivative()
  • computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

Value()
  • computes the value <F>of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
  • computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_IsoCurve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

Iso()
Return type:GeomAbs_IsoType
Load()
  • Changes the surface. The iso is reset to NoneIso.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
  • Changes the iso on the current surface.
Parameters:
  • Iso (GeomAbs_IsoType) –
  • Param (float) –
Return type:

None

  • Changes the iso on the current surface.
Parameters:
  • Iso (GeomAbs_IsoType) –
  • Param (float) –
  • WFirst (float) –
  • WLast (float) –
Return type:

None

Parameter()
Return type:float
Surface()
Return type:Handle_Adaptor3d_HSurface
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_OffsetCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_Curve2d

Curve()
Return type:Handle_Adaptor2d_HCurve2d
Load()
  • Changes the curve. The Offset is reset to 0.
Parameters:S (Handle_Adaptor2d_HCurve2d &) –
Return type:None
  • Changes the Offset on the current Curve.
Parameters:Offset (float) –
Return type:None
  • Changes the Offset Curve on the current Curve.
Parameters:
  • Offset (float) –
  • WFirst (float) –
  • WLast (float) –
Return type:

None

Offset()
Return type:float
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_Surface(*args, **kwargs)

Bases: object

AxeOfRevolution()
Return type:gp_Ax1
BSpline()
Return type:Handle_Geom_BSplineSurface
BasisCurve()
Return type:Handle_Adaptor3d_HCurve
BasisSurface()
Return type:Handle_Adaptor3d_HSurface
Bezier()
Return type:Handle_Geom_BezierSurface
Cone()
Return type:gp_Cone
Cylinder()
Return type:gp_Cylinder
D0()
  • Computes the point of parameters U,V on the surface.
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
Return type:

void

D1()
  • Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1.
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
Return type:

void

D2()
  • Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2.
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
Return type:

void

D3()
  • Computes the point, the first, second and third derivatives on the surface. Raised if the continuity of the current intervals is not C3.
Parameters:
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • D2UV (gp_Vec) –
  • D3U (gp_Vec) –
  • D3V (gp_Vec) –
  • D3UUV (gp_Vec) –
  • D3UVV (gp_Vec) –
Return type:

void

DN()
  • Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
Parameters:
  • U (float) –
  • V (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

Delete()
Return type:void
Direction()
Return type:gp_Dir
FirstUParameter()
Return type:float
FirstVParameter()
Return type:float
GetType()
  • Returns the type of the surface : Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface
Return type:GeomAbs_SurfaceType
IsUClosed()
Return type:bool
IsUPeriodic()
Return type:bool
IsURational()
Return type:bool
IsVClosed()
Return type:bool
IsVPeriodic()
Return type:bool
IsVRational()
Return type:bool
LastUParameter()
Return type:float
LastVParameter()
Return type:float
NbUIntervals()
  • Returns the number of U intervals for continuity <S>. May be one if UContinuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
NbUKnots()
Return type:int
NbUPoles()
Return type:int
NbVIntervals()
  • Returns the number of V intervals for continuity <S>. May be one if VContinuity(me) >= <S>
Parameters:S (GeomAbs_Shape) –
Return type:int
NbVKnots()
Return type:int
NbVPoles()
Return type:int
OffsetValue()
Return type:float
Plane()
Return type:gp_Pln
Sphere()
Return type:gp_Sphere
Torus()
Return type:gp_Torus
UContinuity()
Return type:GeomAbs_Shape
UDegree()
Return type:int
UIntervals()
  • Returns the intervals with the requested continuity in the U direction.
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

UPeriod()
Return type:float
UResolution()
  • Returns the parametric U resolution corresponding to the real space resolution <R3d>.
Parameters:R3d (float) –
Return type:float
UTrim()
  • Returns a surface trimmed in the U direction 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_Adaptor3d_HSurface

VContinuity()
Return type:GeomAbs_Shape
VDegree()
Return type:int
VIntervals()
  • Returns the intervals with the requested continuity in the V direction.
Parameters:
  • T (TColStd_Array1OfReal &) –
  • S (GeomAbs_Shape) –
Return type:

void

VPeriod()
Return type:float
VResolution()
  • Returns the parametric V resolution corresponding to the real space resolution <R3d>.
Parameters:R3d (float) –
Return type:float
VTrim()
  • Returns a surface trimmed in the V direction 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_Adaptor3d_HSurface

Value()
  • Computes the point of parameters U,V on the surface.
Parameters:
  • U (float) –
  • V (float) –
Return type:

gp_Pnt

thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_SurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Surface

Load()
  • Changes the Curve
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
  • Changes the Direction
Parameters:V (gp_Dir) –
Return type:None
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_SurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Surface

Axis()
Return type:gp_Ax3
Load()
  • Changes the Curve
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
  • Changes the Direction
Parameters:V (gp_Ax1) –
Return type:None
thisown

The membership flag

class OCC.Adaptor3d.Adaptor3d_TopolTool(*args)

Bases: OCC.MMgt.MMgt_TShared

BSplSamplePnts()
  • compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces - is used in SamplePnts theDefl is a requred deflection theNUmin, theNVmin are minimal nb points for U and V.
Parameters:
  • theDefl (float) –
  • theNUmin (Standard_Integer) –
  • theNVmin (Standard_Integer) –
Return type:

void

Classify()
Parameters:
  • P (gp_Pnt2d) –
  • Tol (float) –
  • ReacdreOnPeriodic (bool) – default value is Standard_True
  • P
  • Tol
  • ReacdreOnPeriodic – default value is Standard_True
Return type:

TopAbs_State

Return type:

TopAbs_State

ComputeSamplePoints()
Return type:void
DomainIsInfinite()
Return type:bool
Edge()
Return type:Standard_Address
GetHandle()

Adaptor3d_TopolTool_GetHandle(Adaptor3d_TopolTool self) -> Handle_Adaptor3d_TopolTool

Has3d()
  • answers if arcs and vertices may have 3d representations, so that we could use Tol3d and Pnt methods.
Return type:bool
Identical()
  • Returns True if the vertices V1 and V2 are identical. This method does not take the orientation of the vertices in account.
Parameters:
  • V1 (Handle_Adaptor3d_HVertex &) –
  • V2 (Handle_Adaptor3d_HVertex &) –
Return type:

bool

Init()
Return type:void
InitVertexIterator()
Return type:void
Initialize()
Return type:

void

Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Curve (Handle_Adaptor2d_HCurve2d &) –
Return type:

void

Return type:

void

IsThePointOn()
Parameters:
  • P (gp_Pnt2d) –
  • Tol (float) –
  • ReacdreOnPeriodic (bool) – default value is Standard_True
  • P
  • Tol
  • ReacdreOnPeriodic – default value is Standard_True
Return type:

bool

Return type:

bool

IsUniformSampling()
  • Returns true if provide uniform sampling of points.
Return type:bool
More()
Return type:bool
MoreVertex()
Return type:bool
NbSamples()
  • compute the sample-points for the intersections algorithms
Return type:int
NbSamplesU()
  • compute the sample-points for the intersections algorithms
Return type:int
NbSamplesV()
  • compute the sample-points for the intersections algorithms
Return type:int
Next()
Return type:void
NextVertex()
Return type:void
Orientation()
  • If the function returns the orientation of the arc. If the orientation is FORWARD or REVERSED, the arc is a ‘real’ limit of the surface. If the orientation is INTERNAL or EXTERNAL, the arc is considered as an arc on the surface.
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:TopAbs_Orientation
  • Returns the orientation of the vertex V. The vertex has been found with an exploration on a given arc. The orientation is the orientation of the vertex on this arc.
Parameters:V (Handle_Adaptor3d_HVertex &) –
Return type:TopAbs_Orientation
Pnt()
  • returns 3d point of the vertex V
Parameters:V (Handle_Adaptor3d_HVertex &) –
Return type:gp_Pnt
SamplePnts()
  • compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces. For other surfaces algorithm is the same as in method ComputeSamplePoints(), but only fill arrays of U and V sample parameters; theDefl is a requred deflection theNUmin, theNVmin are minimal nb points for U and V.
Parameters:
  • theDefl (float) –
  • theNUmin (Standard_Integer) –
  • theNVmin (Standard_Integer) –
Return type:

void

SamplePoint()
Parameters:
  • Index (Standard_Integer) –
  • P2d (gp_Pnt2d) –
  • P3d (gp_Pnt) –
Return type:

void

Tol3d()
  • returns 3d tolerance of the arc C
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:float
  • returns 3d tolerance of the vertex V
Parameters:V (Handle_Adaptor3d_HVertex &) –
Return type:float
UParameters()
  • return the set of U parameters on the surface obtained by the method SamplePnts
Parameters:theArray (TColStd_Array1OfReal &) –
Return type:None
VParameters()
  • return the set of V parameters on the surface obtained by the method SamplePnts
Parameters:theArray (TColStd_Array1OfReal &) –
Return type:None
Value()
Return type:Handle_Adaptor2d_HCurve2d
Vertex()
Return type:Handle_Adaptor3d_HVertex
thisown

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HCurve(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HCurveOnSurface(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HCurve

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HIsoCurve(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HCurve

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HOffsetCurve(*args)

Bases: OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HSurface(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HSurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HSurface

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HSurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HSurface

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_HVertex(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.Adaptor3d.Handle_Adaptor3d_TopolTool(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

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

Bases: object

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

The membership flag

value()