OCC.Geom2dLProp module

Handles local properties of curves and surfaces from thepackages Geom and Geom2d.SeeAlso: Package LProp.-Level : Public.All methods of all classes will be public.

class Geom2dLProp_CLProps2d(*args)

Bases: object

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

None

Return type:

None

Return type:

None

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 Geom2dLProp_CurAndInf2d(*args)

Bases: OCC.LProp.LProp_CurAndInf

  • Initializes the framework. Note: The curve on which the local properties are computed is defined using one of the following functions: Perform, PerformCurExt or PerformInf.
Return type:None
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 Geom2dLProp_Curve2dTool

Bases: object

static Continuity()
  • 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()
  • Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
Parameters:
Return type:

void

static D2()
  • Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <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 curve <C>.
Parameters:
Return type:

void

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

void

thisown

The membership flag

Geom2dLProp_Curve2dTool_Continuity()
  • 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
Geom2dLProp_Curve2dTool_D1()
  • Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
Parameters:
Return type:

void

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

void

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

void

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

void

class Geom2dLProp_FuncCurExt(*args)

Bases: OCC.math.math_FunctionWithDerivative

Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Tol (float) –
Return type:

None

IsMinKC()
  • True if Param corresponds to a minus of the radius of curvature.
Parameters:Param (float) –
Return type:bool
thisown

The membership flag

class Geom2dLProp_FuncCurNul(*args)

Bases: OCC.math.math_FunctionWithDerivative

Parameters:C (Handle_Geom2d_Curve &) –
Return type:None
thisown

The membership flag

class Geom2dLProp_NumericCurInf2d(*args)

Bases: object

Return type:None
IsDone()
  • True if the solutions are found.
Return type:bool
PerformCurExt()
  • Computes the locals extremas of curvature.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Result (LProp_CurAndInf &) –
Return type:

None

  • Computes the locals extremas of curvature. in the interval of parmeters [UMin,UMax].
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • UMin (float) –
  • UMax (float) –
  • Result (LProp_CurAndInf &) –
Return type:

None

PerformInf()
  • Computes the inflections.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Result (LProp_CurAndInf &) –
Return type:

None

  • Computes the inflections in the interval of parmeters [UMin,UMax].
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • UMin (float) –
  • UMax (float) –
  • Result (LProp_CurAndInf &) –
Return type:

None

thisown

The membership flag

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