OCC.Core.LProp3d module

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

class LProp3d_CLProps(*args)

Bases: object

  • Initializes the local properties of the curve <C> The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
    param C

    type C

    Adaptor3d_HCurve

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None* Same as previous constructor but here the parameter is set to the value <U>. All the computations done will be related to <C> and <U>.

    param C

    type C

    Adaptor3d_HCurve

    param U

    type U

    float

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None* Same as previous constructor but here the parameter is set to the value <U> and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to <C> and <U> when the functions ‘set’ will be done.

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None

CentreOfCurvature()
  • Returns the centre of curvature <P>.
    param P

    type P

    gp_Pnt

    rtype

    None

Curvature()
  • Returns the curvature.
    rtype

    float

D1()
  • Returns the first derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

D2()
  • Returns the second derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

D3()
  • Returns the third derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

IsTangentDefined()
  • Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
    rtype

    bool

Normal()
  • Returns the normal direction <N>.
    param N

    type N

    gp_Dir

    rtype

    None

SetCurve()
  • Initializes the local properties of the curve for the new curve.
    param C

    type C

    Adaptor3d_HCurve

    rtype

    None

SetParameter()
  • Initializes the local properties of the curve for the parameter value <U>.
    param U

    type U

    float

    rtype

    None

Tangent()
  • output the tangent direction <D>
    param D

    type D

    gp_Dir

    rtype

    None

Value()
  • Returns the Point.
    rtype

    gp_Pnt

property thisown

The membership flag

class LProp3d_CurveTool

Bases: object

static Continuity()
  • returns the order of continuity of the HCurve <C>. returns 1first derivative only is computable returns 2first and second derivative only are computable. returns 3first, second and third are computable.
    param C

    type C

    Adaptor3d_HCurve

    rtype

    int

static D1()
  • Computes the point <P> and first derivative <V1> of parameter <U> on the HCurve <C>.
    param C

    type C

    Adaptor3d_HCurve

    param U

    type U

    float

    param P

    type P

    gp_Pnt

    param V1

    type V1

    gp_Vec

    rtype

    void

static D2()
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the HCurve <C>.
    param C

    type C

    Adaptor3d_HCurve

    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

static D3()
  • Computes the point <P>, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter <U> on the HCurve <C>.
    param C

    type C

    Adaptor3d_HCurve

    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

static FirstParameter()
  • returns the first parameter bound of the HCurve.
    param C

    type C

    Adaptor3d_HCurve

    rtype

    float

static LastParameter()
  • returns the last parameter bound of the HCurve. FirstParameter must be less than LastParamenter.
    param C

    type C

    Adaptor3d_HCurve

    rtype

    float

static Value()
  • Computes the point <P> of parameter <U> on the HCurve <C>.
    param C

    type C

    Adaptor3d_HCurve

    param U

    type U

    float

    param P

    type P

    gp_Pnt

    rtype

    void

property thisown

The membership flag

class LProp3d_SLProps(*args)

Bases: object

  • Initializes the local properties of the surface <S> for the parameter values (<U>, <V>). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
    param S

    type S

    Adaptor3d_HSurface

    param U

    type U

    float

    param V

    type V

    float

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None* idem as previous constructor but without setting the value of parameters <U> and <V>.

    param S

    type S

    Adaptor3d_HSurface

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None* idem as previous constructor but without setting the value of parameters <U> and <V> and the surface. the surface can have an empty constructor.

    param N

    type N

    int

    param Resolution

    type Resolution

    float

    rtype

    None

CurvatureDirections()
  • Returns the direction of the maximum and minimum curvature <MaxD> and <MinD>
    param MaxD

    type MaxD

    gp_Dir

    param MinD

    type MinD

    gp_Dir

    rtype

    None

D1U()
  • Returns the first U derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

D1V()
  • Returns the first V derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

D2U()
  • Returns the second U derivatives The derivative is computed if it has not been yet.
    rtype

    gp_Vec

D2V()
  • Returns the second V derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

DUV()
  • Returns the second UV cross-derivative. The derivative is computed if it has not been yet.
    rtype

    gp_Vec

GaussianCurvature()
  • Returns the Gaussian curvature
    rtype

    float

IsCurvatureDefined()
  • returns True if the curvature is defined.
    rtype

    bool

IsNormalDefined()
  • Tells if the normal is defined.
    rtype

    bool

IsTangentUDefined()
  • returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.
    rtype

    bool

IsTangentVDefined()
  • returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.
    rtype

    bool

IsUmbilic()
  • returns True if the point is umbilic (i.e. if the curvature is constant).
    rtype

    bool

MaxCurvature()
  • Returns the maximum curvature
    rtype

    float

MeanCurvature()
  • Returns the mean curvature.
    rtype

    float

MinCurvature()
  • Returns the minimum curvature
    rtype

    float

Normal()
  • Returns the normal direction.
    rtype

    gp_Dir

SetParameters()
  • Initializes the local properties of the surface S for the new parameter values (<U>, <V>).
    param U

    type U

    float

    param V

    type V

    float

    rtype

    None

SetSurface()
  • Initializes the local properties of the surface S for the new surface.
    param S

    type S

    Adaptor3d_HSurface

    rtype

    None

TangentU()
  • Returns the tangent direction <D> on the iso-V.
    param D

    type D

    gp_Dir

    rtype

    None

TangentV()
  • Returns the tangent direction <D> on the iso-V.
    param D

    type D

    gp_Dir

    rtype

    None

Value()
  • Returns the point.
    rtype

    gp_Pnt

property thisown

The membership flag

class LProp3d_SurfaceTool

Bases: object

static Bounds()
  • returns the bounds of the HSurface.
    param S

    type S

    Adaptor3d_HSurface

    param U1

    type U1

    float

    param V1

    type V1

    float

    param U2

    type U2

    float

    param V2

    type V2

    float

    rtype

    void

static Continuity()
  • returns the order of continuity of the HSurface <S>. returns 1first derivative only is computable returns 2first and second derivative only are computable.
    param S

    type S

    Adaptor3d_HSurface

    rtype

    int

static D1()
  • Computes the point <P> and first derivative <D1*> of parameter <U> and <V> on the HSurface <S>.
    param 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

    void

static D2()
  • Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the HSurface <S>.
    param 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 DUV

    type DUV

    gp_Vec

    rtype

    void

static DN()
Parameters

S

type S

Adaptor3d_HSurface

param U

type U

float

param V

type V

float

param IU

type IU

int

param IV

type IV

int

rtype

gp_Vec

static Value()
  • Computes the point <P> of parameter <U> and <V> on the HSurface <S>.
    param S

    type S

    Adaptor3d_HSurface

    param U

    type U

    float

    param V

    type V

    float

    param P

    type P

    gp_Pnt

    rtype

    void

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