OCC.Core.Adaptor3d module

Adaptor3d module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_adaptor3d.html

class Adaptor3d_Curve

Bases: object

BSpline()
Return type

opencascade::handle<Geom_BSplineCurve>

Bezier()
Return type

opencascade::handle<Geom_BezierCurve>

Circle()
Return type

gp_Circ

Continuity()
Return type

GeomAbs_Shape

D0()
  • Computes the point of parameter U on the curve.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    rtype

    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.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    param V

    type V

    gp_Vec

    rtype

    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.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    param V1

    type V1

    gp_Vec

    param V2

    type V2

    gp_Vec

    rtype

    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.
    param U

    type U

    float

    param P

    type P

    gp_Pnt

    param V1

    type V1

    gp_Vec

    param V2

    type V2

    gp_Vec

    param V3

    type V3

    gp_Vec

    rtype

    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.
    param U

    type U

    float

    param N

    type N

    int

    rtype

    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 intervalLine, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
    rtype

    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()
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    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>
    param S

    type S

    GeomAbs_Shape

    rtype

    int

NbKnots()
Return type

int

NbPoles()
Return type

int

OffsetCurve()
Return type

opencascade::handle<Geom_OffsetCurve>

Parabola()
Return type

gp_Parab

Period()
Return type

float

Resolution()
  • Returns the parametric resolution corresponding to the real space resolution <R3d>.
    param R3d

    type R3d

    float

    rtype

    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>
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HCurve>

Value()
  • Computes the point of parameter U on the curve.
    param U

    type U

    float

    rtype

    gp_Pnt

property thisown

The membership flag

class Adaptor3d_CurveOnSurface(*args)

Bases: OCC.Core.Adaptor3d.Adaptor3d_Curve

Return type

None:param S: :type S: Adaptor3d_HSurface :rtype: None* Creates a CurveOnSurface from the 2d curve <C> and the surface <S>. :param C: :type C: Adaptor2d_HCurve2d :param S: :type S: Adaptor3d_HSurface :rtype: None

ChangeCurve()
Return type

opencascade::handle<Adaptor2d_HCurve2d>

ChangeSurface()
Return type

opencascade::handle<Adaptor3d_HSurface>

GetCurve()
Return type

opencascade::handle<Adaptor2d_HCurve2d>

GetSurface()
Return type

opencascade::handle<Adaptor3d_HSurface>

Load()
  • Changes the surface.
    param S

    type S

    Adaptor3d_HSurface

    rtype

    None* Changes the 2d curve.

    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    None* Load both curve and surface.

    param C

    type C

    Adaptor2d_HCurve2d

    param S

    type S

    Adaptor3d_HSurface

    rtype

    None

property thisown

The membership flag

class Adaptor3d_HCurve(*args, **kwargs)

Bases: OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

BSpline()
Return type

opencascade::handle<Geom_BSplineCurve>

Bezier()
Return type

opencascade::handle<Geom_BezierCurve>

Circle()
Return type

gp_Circ

Continuity()
Return type

GeomAbs_Shape

Curve()
  • Returns a pointer to the Curve inside the HCurve.
    rtype

    Adaptor3d_Curve

D0()
Parameters

U

type U

float

param P

type P

gp_Pnt

rtype

None

D1()
Parameters

U

type U

float

param P

type P

gp_Pnt

param V

type V

gp_Vec

rtype

None

D2()
Parameters

U

type U

float

param P

type P

gp_Pnt

param V1

type V1

gp_Vec

param V2

type V2

gp_Vec

rtype

None

D3()
Parameters

U

type U

float

param P

type P

gp_Pnt

param V1

type V1

gp_Vec

param V2

type V2

gp_Vec

param V3

type V3

gp_Vec

rtype

None

DN()
Parameters

U

type U

float

param N

type N

int

rtype

gp_Vec

Degree()
Return type

int

static DownCast(t)
Ellipse()
Return type

gp_Elips

FirstParameter()
Return type

float

GetCurve()
  • Returns a pointer to the Curve inside the HCurve.
    rtype

    Adaptor3d_Curve

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()
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    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

type S

GeomAbs_Shape

rtype

int

NbKnots()
Return type

int

NbPoles()
Return type

int

OffsetCurve()
Return type

opencascade::handle<Geom_OffsetCurve>

Parabola()
Return type

gp_Parab

Period()
Return type

float

Resolution()
Parameters

R3d

type R3d

float

rtype

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>
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HCurve>

Value()
Parameters

U

type U

float

rtype

gp_Pnt

property thisown

The membership flag

class Adaptor3d_HCurveOnSurface(*args)

Bases: OCC.Core.Adaptor3d.Adaptor3d_HCurve

  • Creates an empty GenHCurve.
    rtype

    None* Creates a GenHCurve from a Curve

    param C

    type C

    Adaptor3d_CurveOnSurface

    rtype

    None

ChangeCurve()
  • Returns the curve used to create the GenHCurve.
    rtype

    Adaptor3d_CurveOnSurface

static DownCast(t)
Set()
  • Sets the field of the GenHCurve.
    param C

    type C

    Adaptor3d_CurveOnSurface

    rtype

    None

property thisown

The membership flag

class Adaptor3d_HIsoCurve(*args)

Bases: OCC.Core.Adaptor3d.Adaptor3d_HCurve

  • Creates an empty GenHCurve.
    rtype

    None* Creates a GenHCurve from a Curve

    param C

    type C

    Adaptor3d_IsoCurve

    rtype

    None

ChangeCurve()
  • Returns the curve used to create the GenHCurve.
    rtype

    Adaptor3d_IsoCurve

static DownCast(t)
Set()
  • Sets the field of the GenHCurve.
    param C

    type C

    Adaptor3d_IsoCurve

    rtype

    None

property thisown

The membership flag

class Adaptor3d_HSurface(*args, **kwargs)

Bases: OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

AxeOfRevolution()
Return type

gp_Ax1

BSpline()
Return type

opencascade::handle<Geom_BSplineSurface>

BasisCurve()
Return type

opencascade::handle<Adaptor3d_HCurve>

BasisSurface()
Return type

opencascade::handle<Adaptor3d_HSurface>

Bezier()
Return type

opencascade::handle<Geom_BezierSurface>

Cone()
Return type

gp_Cone

Cylinder()
Return type

gp_Cylinder

D0()
Parameters

U

type U

float

param V

type V

float

param P

type P

gp_Pnt

rtype

None

D1()
Parameters

U

type U

float

param V

type V

float

param P

type P

gp_Pnt

param D1U

type D1U

gp_Vec

param D1V

type D1V

gp_Vec

rtype

None

D2()
Parameters

U

type U

float

param V

type V

float

param P

type P

gp_Pnt

param D1U

type D1U

gp_Vec

param D1V

type D1V

gp_Vec

param D2U

type D2U

gp_Vec

param D2V

type D2V

gp_Vec

param D2UV

type D2UV

gp_Vec

rtype

None

D3()
Parameters

U

type U

float

param V

type V

float

param P

type P

gp_Pnt

param D1U

type D1U

gp_Vec

param D1V

type D1V

gp_Vec

param D2U

type D2U

gp_Vec

param D2V

type D2V

gp_Vec

param D2UV

type D2UV

gp_Vec

param D3U

type D3U

gp_Vec

param D3V

type D3V

gp_Vec

param D3UUV

type D3UUV

gp_Vec

param D3UVV

type D3UVV

gp_Vec

rtype

None

DN()
Parameters

U

type U

float

param V

type V

float

param Nu

type Nu

int

param Nv

type Nv

int

rtype

gp_Vec

Direction()
Return type

gp_Dir

static DownCast(t)
FirstUParameter()
Return type

float

FirstVParameter()
Return type

float

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

type S

GeomAbs_Shape

rtype

int

NbUKnots()
Return type

int

NbUPoles()
Return type

int

NbVIntervals()
Parameters

S

type S

GeomAbs_Shape

rtype

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.
    rtype

    Adaptor3d_Surface

Torus()
Return type

gp_Torus

UContinuity()
Return type

GeomAbs_Shape

UDegree()
Return type

int

UIntervals()
Parameters

T

type T

TColStd_Array1OfReal

param S

type S

GeomAbs_Shape

rtype

None

UPeriod()
Return type

float

UResolution()
Parameters

R3d

type R3d

float

rtype

float

UTrim()
Parameters

First

type First

float

param Last

type Last

float

param Tol

type Tol

float

rtype

opencascade::handle<Adaptor3d_HSurface>

VContinuity()
Return type

GeomAbs_Shape

VDegree()
Return type

int

VIntervals()
Parameters

T

type T

TColStd_Array1OfReal

param S

type S

GeomAbs_Shape

rtype

None

VPeriod()
Return type

float

VResolution()
Parameters

R3d

type R3d

float

rtype

float

VTrim()
Parameters

First

type First

float

param Last

type Last

float

param Tol

type Tol

float

rtype

opencascade::handle<Adaptor3d_HSurface>

Value()
Parameters

U

type U

float

param V

type V

float

rtype

gp_Pnt

property thisown

The membership flag

class Adaptor3d_HSurfaceTool

Bases: object

static AxeOfRevolution()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Ax1

static BSpline()
Parameters

S

type S

Adaptor3d_HSurface

rtype

opencascade::handle<Geom_BSplineSurface>

static BasisCurve()
Parameters

S

type S

Adaptor3d_HSurface

rtype

opencascade::handle<Adaptor3d_HCurve>

static BasisSurface()
Parameters

S

type S

Adaptor3d_HSurface

rtype

opencascade::handle<Adaptor3d_HSurface>

static Bezier()
Parameters

S

type S

Adaptor3d_HSurface

rtype

opencascade::handle<Geom_BezierSurface>

static Cone()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Cone

static Cylinder()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Cylinder

static D0()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

param P

type P

gp_Pnt

rtype

None

static D1()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

param P

type P

gp_Pnt

param D1u

type D1u

gp_Vec

param D1v

type D1v

gp_Vec

rtype

None

static D2()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

param P

type P

gp_Pnt

param D1U

type D1U

gp_Vec

param D1V

type D1V

gp_Vec

param D2U

type D2U

gp_Vec

param D2V

type D2V

gp_Vec

param D2UV

type D2UV

gp_Vec

rtype

None

static D3()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

param P

type P

gp_Pnt

param D1U

type D1U

gp_Vec

param D1V

type D1V

gp_Vec

param D2U

type D2U

gp_Vec

param D2V

type D2V

gp_Vec

param D2UV

type D2UV

gp_Vec

param D3U

type D3U

gp_Vec

param D3V

type D3V

gp_Vec

param D3UUV

type D3UUV

gp_Vec

param D3UVV

type D3UVV

gp_Vec

rtype

None

static DN()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

param Nu

type Nu

int

param Nv

type Nv

int

rtype

gp_Vec

static Direction()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Dir

static FirstUParameter()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static FirstVParameter()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static GetType()
Parameters

S

type S

Adaptor3d_HSurface

rtype

GeomAbs_SurfaceType

static IsUClosed()
Parameters

S

type S

Adaptor3d_HSurface

rtype

bool

static IsUPeriodic()
Parameters

S

type S

Adaptor3d_HSurface

rtype

bool

static IsVClosed()
Parameters

S

type S

Adaptor3d_HSurface

rtype

bool

static IsVPeriodic()
Parameters

S

type S

Adaptor3d_HSurface

rtype

bool

static LastUParameter()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static LastVParameter()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static NbSamplesU()
Parameters

S

type S

Adaptor3d_HSurface

rtype

int:param S:

type S

Adaptor3d_HSurface

param u1

type u1

float

param u2

type u2

float

rtype

int

static NbSamplesV()
Parameters

S

type S

Adaptor3d_HSurface

rtype

int:param S:

type S

Adaptor3d_HSurface

param v1

type v1

float

param v2

type v2

float

rtype

int

static NbUIntervals()
Parameters

S

type S

Adaptor3d_HSurface

param Sh

type Sh

GeomAbs_Shape

rtype

int

static NbVIntervals()
Parameters

S

type S

Adaptor3d_HSurface

param Sh

type Sh

GeomAbs_Shape

rtype

int

static OffsetValue()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static Plane()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Pln

static Sphere()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Sphere

static Torus()
Parameters

S

type S

Adaptor3d_HSurface

rtype

gp_Torus

static UIntervals()
Parameters

S

type S

Adaptor3d_HSurface

param T

type T

TColStd_Array1OfReal

param Sh

type Sh

GeomAbs_Shape

rtype

None

static UPeriod()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static UResolution()
Parameters

S

type S

Adaptor3d_HSurface

param R3d

type R3d

float

rtype

float

static UTrim()
  • If <First> >= <Last>
    param S

    type S

    Adaptor3d_HSurface

    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HSurface>

static VIntervals()
Parameters

S

type S

Adaptor3d_HSurface

param T

type T

TColStd_Array1OfReal

param Sh

type Sh

GeomAbs_Shape

rtype

None

static VPeriod()
Parameters

S

type S

Adaptor3d_HSurface

rtype

float

static VResolution()
Parameters

S

type S

Adaptor3d_HSurface

param R3d

type R3d

float

rtype

float

static VTrim()
  • If <First> >= <Last>
    param S

    type S

    Adaptor3d_HSurface

    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HSurface>

static Value()
Parameters

S

type S

Adaptor3d_HSurface

param u

type u

float

param v

type v

float

rtype

gp_Pnt

property thisown

The membership flag

class Adaptor3d_HVertex(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None:param P: :type P: gp_Pnt2d :param Ori: :type Ori: TopAbs_Orientation :param Resolution: :type Resolution: float :rtype: None

static DownCast(t)
IsSame()
Parameters

Other

type Other

Adaptor3d_HVertex

rtype

bool

Orientation()
Return type

TopAbs_Orientation

Parameter()
Parameters

C

type C

Adaptor2d_HCurve2d

rtype

float

Resolution()
  • Parametric resolution (2d).
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    float

Value()
Return type

gp_Pnt2d

property thisown

The membership flag

class Adaptor3d_InterFunc(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

  • build the function U(t)=FixVal if Fix =1 or V(t)=FixVal if Fix=2
    param C

    type C

    Adaptor2d_HCurve2d

    param FixVal

    type FixVal

    float

    param Fix

    type Fix

    int

    rtype

    None

property thisown

The membership flag

class Adaptor3d_IsoCurve(*args)

Bases: OCC.Core.Adaptor3d.Adaptor3d_Curve

  • The iso is set to NoneIso.
    rtype

    None* The surface is loaded. The iso is set to NoneIso.

    param S

    type S

    Adaptor3d_HSurface

    rtype

    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.

    param S

    type S

    Adaptor3d_HSurface

    param Iso

    type Iso

    GeomAbs_IsoType

    param Param

    type Param

    float

    rtype

    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.

    param S

    type S

    Adaptor3d_HSurface

    param Iso

    type Iso

    GeomAbs_IsoType

    param Param

    type Param

    float

    param WFirst

    type WFirst

    float

    param WLast

    type WLast

    float

    rtype

    None

Iso()
Return type

GeomAbs_IsoType

Load()
  • Changes the surface. The iso is reset to NoneIso.
    param S

    type S

    Adaptor3d_HSurface

    rtype

    None* Changes the iso on the current surface.

    param Iso

    type Iso

    GeomAbs_IsoType

    param Param

    type Param

    float

    rtype

    None* Changes the iso on the current surface.

    param Iso

    type Iso

    GeomAbs_IsoType

    param Param

    type Param

    float

    param WFirst

    type WFirst

    float

    param WLast

    type WLast

    float

    rtype

    None

Parameter()
Return type

float

Surface()
Return type

opencascade::handle<Adaptor3d_HSurface>

property thisown

The membership flag

class Adaptor3d_Surface

Bases: object

AxeOfRevolution()
Return type

gp_Ax1

BSpline()
Return type

opencascade::handle<Geom_BSplineSurface>

BasisCurve()
Return type

opencascade::handle<Adaptor3d_HCurve>

BasisSurface()
Return type

opencascade::handle<Adaptor3d_HSurface>

Bezier()
Return type

opencascade::handle<Geom_BezierSurface>

Cone()
Return type

gp_Cone

Cylinder()
Return type

gp_Cylinder

D0()
  • Computes the point of parameters U,V on the surface.
    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    rtype

    void

D1()
  • Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1.
    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param D1U

    type D1U

    gp_Vec

    param D1V

    type D1V

    gp_Vec

    rtype

    void

D2()
  • Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2.
    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param D1U

    type D1U

    gp_Vec

    param D1V

    type D1V

    gp_Vec

    param D2U

    type D2U

    gp_Vec

    param D2V

    type D2V

    gp_Vec

    param D2UV

    type D2UV

    gp_Vec

    rtype

    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.
    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    param D1U

    type D1U

    gp_Vec

    param D1V

    type D1V

    gp_Vec

    param D2U

    type D2U

    gp_Vec

    param D2V

    type D2V

    gp_Vec

    param D2UV

    type D2UV

    gp_Vec

    param D3U

    type D3U

    gp_Vec

    param D3V

    type D3V

    gp_Vec

    param D3UUV

    type D3UUV

    gp_Vec

    param D3UVV

    type D3UVV

    gp_Vec

    rtype

    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.
    param U

    type U

    float

    param V

    type V

    float

    param Nu

    type Nu

    int

    param Nv

    type Nv

    int

    rtype

    gp_Vec

Direction()
Return type

gp_Dir

FirstUParameter()
Return type

float

FirstVParameter()
Return type

float

GetType()
  • Returns the type of the surfacePlane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface
    rtype

    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>
    param S

    type S

    GeomAbs_Shape

    rtype

    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>
    param S

    type S

    GeomAbs_Shape

    rtype

    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.
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    void

UPeriod()
Return type

float

UResolution()
  • Returns the parametric U resolution corresponding to the real space resolution <R3d>.
    param R3d

    type R3d

    float

    rtype

    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>
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HSurface>

VContinuity()
Return type

GeomAbs_Shape

VDegree()
Return type

int

VIntervals()
  • Returns the intervals with the requested continuity in the V direction.
    param T

    type T

    TColStd_Array1OfReal

    param S

    type S

    GeomAbs_Shape

    rtype

    void

VPeriod()
Return type

float

VResolution()
  • Returns the parametric V resolution corresponding to the real space resolution <R3d>.
    param R3d

    type R3d

    float

    rtype

    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>
    param First

    type First

    float

    param Last

    type Last

    float

    param Tol

    type Tol

    float

    rtype

    opencascade::handle<Adaptor3d_HSurface>

Value()
  • Computes the point of parameters U,V on the surface.
    param U

    type U

    float

    param V

    type V

    float

    rtype

    gp_Pnt

property thisown

The membership flag

class Adaptor3d_TopolTool(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None:param Surface: :type Surface: Adaptor3d_HSurface :rtype: 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.
    param theDefl

    type theDefl

    float

    param theNUmin

    type theNUmin

    int

    param theNVmin

    type theNVmin

    int

    rtype

    void

Classify()
Parameters

P

type P

gp_Pnt2d

param Tol

type Tol

float

param ReacdreOnPeriodic

default value is Standard_True

type ReacdreOnPeriodic

bool

rtype

TopAbs_State

ComputeSamplePoints()
Return type

void

DomainIsInfinite()
Return type

bool

static DownCast(t)
Edge()
Return type

Standard_Address

Has3d()
  • answers if arcs and vertices may have 3d representations, so that we could use Tol3d and Pnt methods.
    rtype

    bool

Identical()
  • Returns True if the vertices V1 and V2 are identical. This method does not take the orientation of the vertices in account.
    param V1

    type V1

    Adaptor3d_HVertex

    param V2

    type V2

    Adaptor3d_HVertex

    rtype

    bool

Init()
Return type

void

InitVertexIterator()
Return type

void

Initialize()
Return type

void:param S: :type S: Adaptor3d_HSurface :rtype: void:param Curve: :type Curve: Adaptor2d_HCurve2d :rtype: void

IsThePointOn()
Parameters

P

type P

gp_Pnt2d

param Tol

type Tol

float

param ReacdreOnPeriodic

default value is Standard_True

type ReacdreOnPeriodic

bool

rtype

bool

IsUniformSampling()
  • Returns true if provide uniform sampling of points.
    rtype

    bool

More()
Return type

bool

MoreVertex()
Return type

bool

NbSamples()
  • compute the sample-points for the intersections algorithms
    rtype

    int

NbSamplesU()
  • compute the sample-points for the intersections algorithms
    rtype

    int

NbSamplesV()
  • compute the sample-points for the intersections algorithms
    rtype

    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.
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    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.

    param V

    type V

    Adaptor3d_HVertex

    rtype

    TopAbs_Orientation

Pnt()
  • returns 3d point of the vertex V
    param V

    type V

    Adaptor3d_HVertex

    rtype

    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.
    param theDefl

    type theDefl

    float

    param theNUmin

    type theNUmin

    int

    param theNVmin

    type theNVmin

    int

    rtype

    void

SamplePoint()
Parameters

Index

type Index

int

param P2d

type P2d

gp_Pnt2d

param P3d

type P3d

gp_Pnt

rtype

void

Tol3d()
  • returns 3d tolerance of the arc C
    param C

    type C

    Adaptor2d_HCurve2d

    rtype

    float* returns 3d tolerance of the vertex V

    param V

    type V

    Adaptor3d_HVertex

    rtype

    float

UParameters()
  • return the set of U parameters on the surface obtained by the method SamplePnts
    param theArray

    type theArray

    TColStd_Array1OfReal

    rtype

    None

VParameters()
  • return the set of V parameters on the surface obtained by the method SamplePnts
    param theArray

    type theArray

    TColStd_Array1OfReal

    rtype

    None

Value()
Return type

opencascade::handle<Adaptor2d_HCurve2d>

Vertex()
Return type

opencascade::handle<Adaptor3d_HVertex>

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()