OCC.Geom2dLProp module

class OCC.Geom2dLProp.Geom2dLProp_CLProps2d(*args)

Bases: object

CentreOfCurvature()
Parameters:P (gp_Pnt2d) –
Return type:None
Curvature()
Return type:float
D1()
Return type:gp_Vec2d
D2()
Return type:gp_Vec2d
D3()
Return type:gp_Vec2d
IsTangentDefined()
Return type:bool
Normal()
Parameters:N (gp_Dir2d) –
Return type:None
SetCurve()
Parameters:C (Handle_Geom2d_Curve &) –
Return type:None
SetParameter()
Parameters:U (float) –
Return type:None
Tangent()
Parameters:D (gp_Dir2d) –
Return type:None
Value()
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.Geom2dLProp.Geom2dLProp_CurAndInf2d

Bases: OCC.LProp.LProp_CurAndInf

IsDone()
  • True if the solutions are found.
Return type:bool
Perform()
  • For the curve C, Computes both the inflection points and the maximum and minimum curvatures.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:None
PerformCurExt()
  • For the curve C, Computes the locals extremas of curvature.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:None
PerformInf()
  • For the curve C, Computes the inflections. After computation, the following functions can be used: - IsDone to check if the computation was successful - NbPoints to obtain the number of computed particular points - Parameter to obtain the parameter on the curve for each particular point - Type to check if the point is an inflection point or an extremum of curvature of the curve C. Warning These functions can be used to analyze a series of curves, however it is necessary to clear the table of results between each computation.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:None
thisown

The membership flag

class OCC.Geom2dLProp.Geom2dLProp_Curve2dTool(*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_Geom2d_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_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
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_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
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_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • V3 (gp_Vec2d) –
Return type:

void

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

void

thisown

The membership flag

OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_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_Geom2d_Curve &) –
Return type:int
OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_D1(*args)
  • Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
Return type:

void

OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_D2(*args)
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
Return type:

void

OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_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_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • V3 (gp_Vec2d) –
Return type:

void

OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_FirstParameter(*args)
  • returns the first parameter bound of the curve.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:float
OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_LastParameter(*args)
  • returns the last parameter bound of the curve. FirstParameter must be less than LastParameter.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:float
OCC.Geom2dLProp.Geom2dLProp_Curve2dTool_Value(*args)
  • Computes the point <P> of parameter <U> on the curve <C>.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • U (float) –
  • P (gp_Pnt2d) –
Return type:

void

class OCC.Geom2dLProp.Geom2dLProp_FCurExtOfNumericCurInf2d(*args)

Bases: object

Derivative()
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

IsMinKC()
Parameters:Param (float) –
Return type:bool
Value()
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Geom2dLProp.Geom2dLProp_FCurNulOfNumericCurInf2d(*args)

Bases: object

Derivative()
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

Value()
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Geom2dLProp.Geom2dLProp_NumericCurInf2d

Bases: object

IsDone()
Return type:bool
PerformCurExt()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Result (LProp_CurAndInf &) –
  • C
  • UMin (float) –
  • UMax (float) –
  • Result
Return type:

None

Return type:

None

PerformInf()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Result (LProp_CurAndInf &) –
  • C
  • UMin (float) –
  • UMax (float) –
  • Result
Return type:

None

Return type:

None

thisown

The membership flag

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

Bases: object

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

The membership flag

value()