OCC.LProp3d module

Handles local properties of curves and surfaces from thepackage Adaptor3d.SeeAlso: Package LProp.

class LProp3d_CLProps(*args)

Bases: object

Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • N (int) –
  • Resolution (float) –
  • C
  • U (float) –
  • N
  • Resolution
  • N
  • Resolution
Return type:

None

Return type:

None

Return type:

None

CentreOfCurvature()
Parameters:P (gp_Pnt) –
Return type:None
Curvature()
Return type:float
D1()
Return type:gp_Vec
D2()
Return type:gp_Vec
D3()
Return type:gp_Vec
IsTangentDefined()
Return type:bool
Normal()
Parameters:N (gp_Dir) –
Return type:None
SetCurve()
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
SetParameter()
Parameters:U (float) –
Return type:None
Tangent()
Parameters:D (gp_Dir) –
Return type:None
Value()
Return type:gp_Pnt
thisown

The membership flag

class LProp3d_CurveTool

Bases: object

static Continuity()
  • returns the order of continuity of the HCurve <C>. returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable. returns 3 : first, second and third are computable.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:int
static D1()
  • Computes the point <P> and first derivative <V1> of parameter <U> on the HCurve <C>.
Parameters:
Return type:

void

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

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

void

static FirstParameter()
  • returns the first parameter bound of the HCurve.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:float
static LastParameter()
  • returns the last parameter bound of the HCurve. FirstParameter must be less than LastParamenter.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:float
static Value()
  • Computes the point <P> of parameter <U> on the HCurve <C>.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • U (float) –
  • P (gp_Pnt) –
Return type:

void

thisown

The membership flag

LProp3d_CurveTool_Continuity()
  • returns the order of continuity of the HCurve <C>. returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable. returns 3 : first, second and third are computable.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:int
LProp3d_CurveTool_D1()
  • Computes the point <P> and first derivative <V1> of parameter <U> on the HCurve <C>.
Parameters:
Return type:

void

LProp3d_CurveTool_D2()
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the HCurve <C>.
Parameters:
Return type:

void

LProp3d_CurveTool_D3()
  • Computes the point <P>, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter <U> on the HCurve <C>.
Parameters:
Return type:

void

LProp3d_CurveTool_FirstParameter()
  • returns the first parameter bound of the HCurve.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:float
LProp3d_CurveTool_LastParameter()
  • returns the last parameter bound of the HCurve. FirstParameter must be less than LastParamenter.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:float
LProp3d_CurveTool_Value()
  • Computes the point <P> of parameter <U> on the HCurve <C>.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • U (float) –
  • P (gp_Pnt) –
Return type:

void

class LProp3d_SLProps(*args)

Bases: object

Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U (float) –
  • V (float) –
  • N (int) –
  • Resolution (float) –
  • S
  • N
  • Resolution
  • N
  • Resolution
Return type:

None

Return type:

None

Return type:

None

CurvatureDirections()
Parameters:
Return type:

None

D1U()
Return type:gp_Vec
D1V()
Return type:gp_Vec
D2U()
Return type:gp_Vec
D2V()
Return type:gp_Vec
DUV()
Return type:gp_Vec
GaussianCurvature()
Return type:float
IsCurvatureDefined()
Return type:bool
IsNormalDefined()
Return type:bool
IsTangentUDefined()
Return type:bool
IsTangentVDefined()
Return type:bool
IsUmbilic()
Return type:bool
MaxCurvature()
Return type:float
MeanCurvature()
Return type:float
MinCurvature()
Return type:float
Normal()
Return type:gp_Dir
SetParameters()
Parameters:
Return type:

None

SetSurface()
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
TangentU()
Parameters:D (gp_Dir) –
Return type:None
TangentV()
Parameters:D (gp_Dir) –
Return type:None
Value()
Return type:gp_Pnt
thisown

The membership flag

class LProp3d_SurfaceTool

Bases: object

static Bounds()
  • returns the bounds of the HSurface.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U1 (float &) –
  • V1 (float &) –
  • U2 (float &) –
  • V2 (float &) –
Return type:

void

static Continuity()
  • returns the order of continuity of the HSurface <S>. returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:int
static D1()
  • Computes the point <P> and first derivative <D1*> of parameter <U> and <V> on the HSurface <S>.
Parameters:
Return type:

void

static D2()
  • Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the HSurface <S>.
Parameters:
Return type:

void

static DN()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U (float) –
  • V (float) –
  • IU (int) –
  • IV (int) –
Return type:

gp_Vec

static Value()
  • Computes the point <P> of parameter <U> and <V> on the HSurface <S>.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
Return type:

void

thisown

The membership flag

LProp3d_SurfaceTool_Bounds()
  • returns the bounds of the HSurface.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U1 (float &) –
  • V1 (float &) –
  • U2 (float &) –
  • V2 (float &) –
Return type:

void

LProp3d_SurfaceTool_Continuity()
  • returns the order of continuity of the HSurface <S>. returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:int
LProp3d_SurfaceTool_D1()
  • Computes the point <P> and first derivative <D1*> of parameter <U> and <V> on the HSurface <S>.
Parameters:
Return type:

void

LProp3d_SurfaceTool_D2()
  • Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the HSurface <S>.
Parameters:
Return type:

void

LProp3d_SurfaceTool_DN()
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U (float) –
  • V (float) –
  • IU (int) –
  • IV (int) –
Return type:

gp_Vec

LProp3d_SurfaceTool_Value()
  • Computes the point <P> of parameter <U> and <V> on the HSurface <S>.
Parameters:
  • S (Handle_Adaptor3d_HSurface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
Return type:

void

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