OCC.Core.Geom2dLProp module¶
Geom2dLProp module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_geom2dlprop.html
-
class
Geom2dLProp_CLProps2d
(*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
Geom2d_Curve
- 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
Geom2d_Curve
- 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_Pnt2d
- 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_Vec2d
-
D2
()¶ - Returns the second derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec2d
-
D3
()¶ - Returns the third derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec2d
-
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_Dir2d
- rtype
None
-
SetCurve
()¶ - Initializes the local properties of the curve for the new curve.
- param C
- type C
Geom2d_Curve
- 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_Dir2d
- rtype
None
-
Value
()¶ - Returns the Point.
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
class
Geom2dLProp_CurAndInf2d
(*args)¶ Bases:
OCC.Core.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.
- rtype
None
-
IsDone
()¶ - True if the solutions are found.
- rtype
bool
-
Perform
()¶ - For the curve C, Computes both the inflection points and the maximum and minimum curvatures.
- param C
- type C
Geom2d_Curve
- rtype
None
-
PerformCurExt
()¶ - For the curve C, Computes the locals extremas of curvature.
- param C
- type C
Geom2d_Curve
- rtype
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.
- param C
- type C
Geom2d_Curve
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dLProp_Curve2dTool
¶ Bases:
object
-
static
Continuity
()¶ - returns the order of continuity of the curve <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
Geom2d_Curve
- rtype
int
-
static
D1
()¶ - Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
- param C
- type C
Geom2d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- rtype
void
-
static
D2
()¶ - Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <C>.
- param C
- type C
Geom2d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- 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 curve <C>.
- param C
- type C
Geom2d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- param V3
- type V3
gp_Vec2d
- rtype
void
-
static
FirstParameter
()¶ - returns the first parameter bound of the curve.
- param C
- type C
Geom2d_Curve
- rtype
float
-
static
LastParameter
()¶ - returns the last parameter bound of the curve. FirstParameter must be less than LastParameter.
- param C
- type C
Geom2d_Curve
- rtype
float
-
static
Value
()¶ - Computes the point <P> of parameter <U> on the curve <C>.
- param C
- type C
Geom2d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- rtype
void
-
property
thisown
¶ The membership flag
-
static
-
class
Geom2dLProp_FuncCurExt
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Parameters
C –
- type C
Geom2d_Curve
- param Tol
- type Tol
float
- rtype
None
-
IsMinKC
()¶ - True if Param corresponds to a minus of the radius of curvature.
- param Param
- type Param
float
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
Geom2dLProp_FuncCurNul
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Parameters
C –
- type C
Geom2d_Curve
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Geom2dLProp_NumericCurInf2d
(*args)¶ Bases:
object
- Return type
-
IsDone
()¶ - True if the solutions are found.
- rtype
bool
-
PerformCurExt
()¶ - Computes the locals extremas of curvature.
- param C
- type C
Geom2d_Curve
- param Result
- type Result
LProp_CurAndInf
- rtype
None* Computes the locals extremas of curvature. in the interval of parmeters [UMin,UMax].
- param C
- type C
Geom2d_Curve
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param Result
- type Result
LProp_CurAndInf
- rtype
None
-
PerformInf
()¶ - Computes the inflections.
- param C
- type C
Geom2d_Curve
- param Result
- type Result
LProp_CurAndInf
- rtype
None* Computes the inflections in the interval of parmeters [UMin,UMax].
- param C
- type C
Geom2d_Curve
- param UMin
- type UMin
float
- param UMax
- type UMax
float
- param Result
- type Result
LProp_CurAndInf
- rtype
None
-
property
thisown
¶ The membership flag