OCC.Adaptor3d module

The Adaptor3d package is used to help definingreusable geometric algorithms. i.e. that can beused on curves and surfaces.It defines general services for 3 kind of objects :- the 2d curve. Curve2d- the 3d curve. Curve- the 3d surface. SurfaceThe services are :- Usual services found in Geom or Geom2d :* parameter range, value and derivatives, etc…- Continuity breakout services :* Allows to divide a curve or a surfaces inparts with a given derivation order.- Special geometries detection services :* Allows to test for special cases that canbe processed more easily :- Conics, Quadrics, Bezier, BSpline …And to get the correponding data form thepackage gp or Geom. The special typeOtherCurve means that no special case hasbeen detected and the algorithm may useonly the evaluation methods (D0, D1, …)For each category Curve2d, Curve, Surface wedefine three classes, we illustrate now theprinciples with the Curve, the same applies toCurve2d and Surface.The class Curve is the abstract root for allCurves used by algorithms, it is handled by valueand provides as deferred methods the servicesdescribed above.Some services (breakout) requires to create newcurves, this leads to memory allocationconsiderations (who create the curve, who deletesit ?). To solve this problem elegantly the curvewill return a HCurve, the HCurve is a curvehandled by reference so it will be deallocatedautomatically when it is not used.A third class GenHCurve is provided, this class isgeneric and its utility is to provide automaticgeneration of the HCurve class when you havewritten the Curve class.* Let us show an example (with 2d curves) :Imagine an algorithm to intersect curves, thisalgorithms is written to process Curve2d fromAdaptor3d :A method may look like :Intersect(C1,C2 : Curve2d from Adaptor3d);Which will look like in C++Intersect(const Adaptor2d_Curve2d& C1,const Adaptor2d_Curve2d& C2){// you can call any methodStandard_Real first1 = C1.FirstParameter();// but avoid to copy in an Adaptor3d_Curve which// is an Abstract class, use a reference or a pointerconst Adaptor3d_Curve& C = C1;const Adaptor3d_Curve pC = &C1;// If you are interseted in Intervals you must// store them in a HCurve to ensure they are kept// in memory. Then a referrence may be used.Handle(Adaptor3d_HCurve) HCI = C1.Interval(1);const Adaptor3d_Curve& CI = HCI->Curve();pC = &(HCI->Curve()); The Adaptor3d provides also Generic classesimplementing algorithmic curves and surfaces.- IsoCurve : Isoparametric curve on a surface.- CurveOnSurface : 2D curve in the parametricspace of a surface.- OffsetCurve2d : 2d offset curve- ProjectedCurve : 3d curve projected on a plane- SurfaceOfLinearExtrusion- SurfaceOfRevolutionThey are instantiated with HCurve, HSurface, HCurved2d

class Adaptor3d_Curve

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:
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:
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:
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:
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:
Return type:

gp_Vec

Degree()
Return type:int
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:
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 Adaptor3d_CurveOnSurface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

Return type:None
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
  • Creates a CurveOnSurface from the 2d curve <C> and the surface <S>.
Parameters:
  • C (Handle_Adaptor2d_HCurve2d &) –
  • S (Handle_Adaptor3d_HSurface &) –
Return type:

None

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 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:
Return type:

None

D1()
Parameters:
Return type:

None

D2()
Parameters:
Return type:

None

D3()
Parameters:
Return type:

None

DN()
Parameters:
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()
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:
Return type:

Handle_Adaptor3d_HCurve

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

The membership flag

class Adaptor3d_HCurveOnSurface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HCurve

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

The membership flag

class Adaptor3d_HIsoCurve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HCurve

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

The membership flag

class Adaptor3d_HOffsetCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_HCurve2d

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

The membership flag

class 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:
Return type:

None

D1()
Parameters:
Return type:

None

D2()
Parameters:
Return type:

None

D3()
Parameters:
Return type:

None

DN()
Parameters:
Return type:

gp_Vec

Direction()
Return type:gp_Dir
FirstUParameter()
Return type:float
FirstVParameter()
Return type:float
GetHandle()
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:
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:
Return type:

Handle_Adaptor3d_HSurface

Value()
Parameters:
Return type:

gp_Pnt

thisown

The membership flag

class Adaptor3d_HSurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HSurface

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

The membership flag

class Adaptor3d_HSurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HSurface

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

The membership flag

class Adaptor3d_HSurfaceTool

Bases: object

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

void

static D1()
Parameters:
Return type:

void

static D2()
Parameters:
Return type:

void

static D3()
Parameters:
Return type:

void

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

gp_Vec

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

int

Return type:

int

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

int

Return type:

int

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

int

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

int

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

void

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

float

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

Handle_Adaptor3d_HSurface

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

void

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

float

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

Handle_Adaptor3d_HSurface

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

gp_Pnt

thisown

The membership flag

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

void

Adaptor3d_HSurfaceTool_D1()
Parameters:
Return type:

void

Adaptor3d_HSurfaceTool_D2()
Parameters:
Return type:

void

Adaptor3d_HSurfaceTool_D3()
Parameters:
Return type:

void

Adaptor3d_HSurfaceTool_DN()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
  • Nu (int) –
  • Nv (int) –
Return type:

gp_Vec

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

int

Return type:

int

Adaptor3d_HSurfaceTool_NbSamplesV()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • S
  • v1 (float) –
  • v2 (float) –
Return type:

int

Return type:

int

Adaptor3d_HSurfaceTool_NbUIntervals()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

Adaptor3d_HSurfaceTool_NbVIntervals()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Sh (GeomAbs_Shape) –
Return type:

int

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

void

Adaptor3d_HSurfaceTool_UPeriod()
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
Adaptor3d_HSurfaceTool_UResolution()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

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

Handle_Adaptor3d_HSurface

Adaptor3d_HSurfaceTool_VIntervals()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • T (TColStd_Array1OfReal &) –
  • Sh (GeomAbs_Shape) –
Return type:

void

Adaptor3d_HSurfaceTool_VPeriod()
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:float
Adaptor3d_HSurfaceTool_VResolution()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • R3d (float) –
Return type:

float

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

Handle_Adaptor3d_HSurface

Adaptor3d_HSurfaceTool_Value()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • u (float) –
  • v (float) –
Return type:

gp_Pnt

class Adaptor3d_HVertex(*args)

Bases: OCC.MMgt.MMgt_TShared

Return type:

None

Parameters:
  • P (gp_Pnt2d) –
  • Ori (TopAbs_Orientation) –
  • Resolution (float) –
Return type:

None

GetHandle()
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 Adaptor3d_InterFunc(*args)

Bases: OCC.math.math_FunctionWithDerivative

  • build the function U(t)=FixVal if Fix =1 or V(t)=FixVal if Fix=2
Parameters:
  • C (Handle_Adaptor2d_HCurve2d &) –
  • FixVal (float) –
  • Fix (int) –
Return type:

None

thisown

The membership flag

class Adaptor3d_IsoCurve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

  • The iso is set to NoneIso.
Return type:None
  • The surface is loaded. The iso is set to NoneIso.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
  • Creates an IsoCurve curve. Iso defines the type (isoU or isoU) Param defines the value of the iso. The bounds of the iso are the bounds of the surface.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Iso (GeomAbs_IsoType) –
  • Param (float) –
Return type:

None

  • Create an IsoCurve curve. Iso defines the type (isoU or isov). Param defines the value of the iso. WFirst,WLast define the bounds of the iso.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • Iso (GeomAbs_IsoType) –
  • Param (float) –
  • WFirst (float) –
  • WLast (float) –
Return type:

None

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 Adaptor3d_OffsetCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_Curve2d

  • The Offset is set to 0.
Return type:None
  • The curve is loaded. The Offset is set to 0.
Parameters:C (Handle_Adaptor2d_HCurve2d &) –
Return type:None
  • Creates an OffsetCurve curve. The Offset is set to Offset.
Parameters:
  • C (Handle_Adaptor2d_HCurve2d &) –
  • Offset (float) –
Return type:

None

  • Create an Offset curve. WFirst,WLast define the bounds of the Offset curve.
Parameters:
  • C (Handle_Adaptor2d_HCurve2d &) –
  • Offset (float) –
  • WFirst (float) –
  • WLast (float) –
Return type:

None

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:
Return type:

None

Offset()
Return type:float
thisown

The membership flag

class Adaptor3d_Surface

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:
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:
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:
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:
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:
Return type:

gp_Vec

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:
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:
Return type:

Handle_Adaptor3d_HSurface

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

gp_Pnt

thisown

The membership flag

class Adaptor3d_SurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Surface

Return type:None
  • The Curve is loaded.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
  • Thew Curve and the Direction are loaded.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • V (gp_Dir) –
Return type:

None

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 Adaptor3d_SurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Surface

Return type:None
  • The Curve is loaded.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
  • The Curve and the Direction are loaded.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • V (gp_Ax1) –
Return type:

None

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 Adaptor3d_TopolTool(*args)

Bases: OCC.MMgt.MMgt_TShared

Return type:None
Parameters:Surface (Handle_Adaptor3d_HSurface &) –
Return type:None
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 (int) –
  • theNVmin (int) –
Return type:

void

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

TopAbs_State

ComputeSamplePoints()
Return type:void
DomainIsInfinite()
Return type:bool
Edge()
Return type:Standard_Address
GetHandle()
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
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 (int) –
  • theNVmin (int) –
Return type:

void

SamplePoint()
Parameters:
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 Handle_Adaptor3d_HCurve(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class Handle_Adaptor3d_HCurveOnSurface(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HCurve

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

The membership flag

class Handle_Adaptor3d_HIsoCurve(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HCurve

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

The membership flag

class Handle_Adaptor3d_HOffsetCurve(*args)

Bases: OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d

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

The membership flag

class Handle_Adaptor3d_HSurface(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class Handle_Adaptor3d_HSurfaceOfLinearExtrusion(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HSurface

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

The membership flag

class Handle_Adaptor3d_HSurfaceOfRevolution(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HSurface

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

The membership flag

class Handle_Adaptor3d_HVertex(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class Handle_Adaptor3d_TopolTool(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases