OCC.GeomLProp module

class OCC.GeomLProp.GeomLProp_CLProps(*args)

Bases: object

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_Geom_Curve &) –
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 OCC.GeomLProp.GeomLProp_CurveTool(*args, **kwargs)

Bases: object

static Continuity(*args)
  • returns the order of continuity of the curve <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_Geom_Curve &) –
Return type:int
static D1(*args)
  • Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
Return type:

void

static D2(*args)
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
Return type:

void

static D3(*args)
  • Computes the point <P>, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
  • V3 (gp_Vec) –
Return type:

void

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

void

thisown

The membership flag

OCC.GeomLProp.GeomLProp_CurveTool_Continuity(*args)
  • returns the order of continuity of the curve <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_Geom_Curve &) –
Return type:int
OCC.GeomLProp.GeomLProp_CurveTool_D1(*args)
  • Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
Return type:

void

OCC.GeomLProp.GeomLProp_CurveTool_D2(*args)
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
Return type:

void

OCC.GeomLProp.GeomLProp_CurveTool_D3(*args)
  • Computes the point <P>, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
  • V1 (gp_Vec) –
  • V2 (gp_Vec) –
  • V3 (gp_Vec) –
Return type:

void

OCC.GeomLProp.GeomLProp_CurveTool_FirstParameter(*args)
  • returns the first parameter bound of the curve.
Parameters:C (Handle_Geom_Curve &) –
Return type:float
OCC.GeomLProp.GeomLProp_CurveTool_LastParameter(*args)
  • returns the last parameter bound of the curve. FirstParameter must be less than LastParamenter.
Parameters:C (Handle_Geom_Curve &) –
Return type:float
OCC.GeomLProp.GeomLProp_CurveTool_Value(*args)
  • Computes the point <P> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom_Curve &) –
  • U (float) –
  • P (gp_Pnt) –
Return type:

void

class OCC.GeomLProp.GeomLProp_SLProps(*args)

Bases: object

CurvatureDirections()
Parameters:
  • MaxD (gp_Dir) –
  • MinD (gp_Dir) –
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:
  • U (float) –
  • V (float) –
Return type:

None

SetSurface()
Parameters:S (Handle_Geom_Surface &) –
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 OCC.GeomLProp.GeomLProp_SurfaceTool(*args, **kwargs)

Bases: object

static Bounds(*args)
  • returns the bounds of the Surface.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U1 (float &) –
  • V1 (float &) –
  • U2 (float &) –
  • V2 (float &) –
Return type:

void

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

void

static D2(*args)
  • Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the Surface <S>.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • DUV (gp_Vec) –
Return type:

void

static DN(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • IU (Standard_Integer) –
  • IV (Standard_Integer) –
Return type:

gp_Vec

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

void

thisown

The membership flag

OCC.GeomLProp.GeomLProp_SurfaceTool_Bounds(*args)
  • returns the bounds of the Surface.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U1 (float &) –
  • V1 (float &) –
  • U2 (float &) –
  • V2 (float &) –
Return type:

void

OCC.GeomLProp.GeomLProp_SurfaceTool_Continuity(*args)
  • returns the order of continuity of the Surface <S>. returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable.
Parameters:S (Handle_Geom_Surface &) –
Return type:int
OCC.GeomLProp.GeomLProp_SurfaceTool_D1(*args)
  • Computes the point <P> and first derivative <D1*> of parameter <U> and <V> on the Surface <S>.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
Return type:

void

OCC.GeomLProp.GeomLProp_SurfaceTool_D2(*args)
  • Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the Surface <S>.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
  • D1U (gp_Vec) –
  • D1V (gp_Vec) –
  • D2U (gp_Vec) –
  • D2V (gp_Vec) –
  • DUV (gp_Vec) –
Return type:

void

OCC.GeomLProp.GeomLProp_SurfaceTool_DN(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • IU (Standard_Integer) –
  • IV (Standard_Integer) –
Return type:

gp_Vec

OCC.GeomLProp.GeomLProp_SurfaceTool_Value(*args)
  • Computes the point <P> of parameter <U> and <V> on the Surface <S>.
Parameters:
  • S (Handle_Geom_Surface &) –
  • U (float) –
  • V (float) –
  • P (gp_Pnt) –
Return type:

void

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

Bases: object

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

The membership flag

value()
class OCC.GeomLProp.geomlprop(*args, **kwargs)

Bases: object

static Continuity(*args)
  • Computes the regularity at the junction between C1 and C2. The booleans r1 and r2 are true if the curves must be taken reversed. The point u1 on C1 and the point u2 on C2 must be confused. tl and ta are the linear and angular tolerance used two compare the derivative.
Parameters:
  • C1 (Handle_Geom_Curve &) –
  • C2 (Handle_Geom_Curve &) –
  • u1 (float) –
  • u2 (float) –
  • r1 (bool) –
  • r2 (bool) –
  • tl (float) –
  • ta (float) –
Return type:

GeomAbs_Shape

  • The same as preciding but using the standard tolerances from package Precision.
Parameters:
  • C1 (Handle_Geom_Curve &) –
  • C2 (Handle_Geom_Curve &) –
  • u1 (float) –
  • u2 (float) –
  • r1 (bool) –
  • r2 (bool) –
Return type:

GeomAbs_Shape

thisown

The membership flag

OCC.GeomLProp.geomlprop_Continuity(*args)
  • Computes the regularity at the junction between C1 and C2. The booleans r1 and r2 are true if the curves must be taken reversed. The point u1 on C1 and the point u2 on C2 must be confused. tl and ta are the linear and angular tolerance used two compare the derivative.
Parameters:
  • C1 (Handle_Geom_Curve &) –
  • C2 (Handle_Geom_Curve &) –
  • u1 (float) –
  • u2 (float) –
  • r1 (bool) –
  • r2 (bool) –
  • tl (float) –
  • ta (float) –
Return type:

GeomAbs_Shape

  • The same as preciding but using the standard tolerances from package Precision.
Parameters:
  • C1 (Handle_Geom_Curve &) –
  • C2 (Handle_Geom_Curve &) –
  • u1 (float) –
  • u2 (float) –
  • r1 (bool) –
  • r2 (bool) –
Return type:

GeomAbs_Shape