OCC.Core.Extrema module¶
Extrema module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_extrema.html
-
class
Extrema_Array1OfPOnCurv
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array1OfPOnCurv2d
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array1OfPOnSurf
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
First
()¶
-
Init
()¶
-
IsAllocated
()¶
-
IsDeletable
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Move
()¶
-
Resize
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
end
()¶
-
next
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array2OfPOnCurv
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeValue
()¶
-
ColLength
()¶
-
Init
()¶
-
IsDeletable
()¶
-
Length
()¶
-
LowerCol
()¶
-
LowerRow
()¶
-
Move
()¶
-
NbColumns
()¶
-
NbRows
()¶
-
Resize
()¶
-
RowLength
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
UpperCol
()¶
-
UpperRow
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array2OfPOnCurv2d
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeValue
()¶
-
ColLength
()¶
-
Init
()¶
-
IsDeletable
()¶
-
Length
()¶
-
LowerCol
()¶
-
LowerRow
()¶
-
Move
()¶
-
NbColumns
()¶
-
NbRows
()¶
-
Resize
()¶
-
RowLength
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
UpperCol
()¶
-
UpperRow
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array2OfPOnSurf
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeValue
()¶
-
ColLength
()¶
-
Init
()¶
-
IsDeletable
()¶
-
Length
()¶
-
LowerCol
()¶
-
LowerRow
()¶
-
Move
()¶
-
NbColumns
()¶
-
NbRows
()¶
-
Resize
()¶
-
RowLength
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
UpperCol
()¶
-
UpperRow
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_Array2OfPOnSurfParams
(*args)¶ Bases:
object
-
Assign
()¶
-
ChangeValue
()¶
-
ColLength
()¶
-
Init
()¶
-
IsDeletable
()¶
-
Length
()¶
-
LowerCol
()¶
-
LowerRow
()¶
-
Move
()¶
-
NbColumns
()¶
-
NbRows
()¶
-
Resize
()¶
-
RowLength
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
UpperCol
()¶
-
UpperRow
()¶
-
Value
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_CCLocFOfLocECC
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Parameters
thetol – default value is 1.0e-10 :type thetol: float :rtype: None:param C1: :type C1: Adaptor3d_Curve :param C2: :type C2: Adaptor3d_Curve :param thetol: default value is 1.0e-10 :type thetol: float :rtype: None
-
CurvePtr
()¶ - Returns a pointer to the curve specified in the constructor or in SetCurve() method.
- param theRank
- type theRank
int
- rtype
Standard_Address
-
NbExt
()¶ - Return the number of found extrema.
- rtype
int
-
Points
()¶ - Return the points of the Nth extreme distance.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- param C
- type C
Standard_Address
- rtype
float
-
SetCurve
()¶ - Parameters
theRank –
- type theRank
int
- param C1
- type C1
Adaptor3d_Curve
- rtype
None
-
SetTolerance
()¶ - Parameters
theTol –
- type theTol
float
- rtype
None
-
SquareDistance
()¶ - Return the value of the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines of boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
math_Vector
- param theUlast
- type theUlast
math_Vector
- rtype
None
-
Tolerance
()¶ - Returns a tolerance specified in the constructor or in SetTolerance() method.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_CCLocFOfLocECC2d
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Parameters
thetol – default value is 1.0e-10 :type thetol: float :rtype: None:param C1: :type C1: Adaptor2d_Curve2d :param C2: :type C2: Adaptor2d_Curve2d :param thetol: default value is 1.0e-10 :type thetol: float :rtype: None
-
CurvePtr
()¶ - Returns a pointer to the curve specified in the constructor or in SetCurve() method.
- param theRank
- type theRank
int
- rtype
Standard_Address
-
NbExt
()¶ - Return the number of found extrema.
- rtype
int
-
Points
()¶ - Return the points of the Nth extreme distance.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- param C
- type C
Standard_Address
- rtype
float
-
SetCurve
()¶ - Parameters
theRank –
- type theRank
int
- param C1
- type C1
Adaptor2d_Curve2d
- rtype
None
-
SetTolerance
()¶ - Parameters
theTol –
- type theTol
float
- rtype
None
-
SquareDistance
()¶ - Return the value of the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines of boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
math_Vector
- param theUlast
- type theUlast
math_Vector
- rtype
None
-
Tolerance
()¶ - Returns a tolerance specified in the constructor or in SetTolerance() method.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_Curve2dTool
¶ Bases:
object
-
static
BSpline
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
opencascade::handle<Geom2d_BSplineCurve>
-
static
Bezier
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
opencascade::handle<Geom2d_BezierCurve>
-
static
Circle
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
gp_Circ2d
-
static
Continuity
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
GeomAbs_Shape
-
static
D0
()¶ - Computes the point of parameter U on the curve.
- param C
- type C
Adaptor2d_Curve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- rtype
None
-
static
D1
()¶ - Computes the point of parameter U on the curve with its first derivative.
- param C
- type C
Adaptor2d_Curve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V
- type V
gp_Vec2d
- rtype
None
-
static
D2
()¶ - Returns the point P of parameter U, the first and second derivatives V1 and V2.
- param C
- type C
Adaptor2d_Curve2d
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- param V1
- type V1
gp_Vec2d
- param V2
- type V2
gp_Vec2d
- rtype
None
-
static
D3
()¶ - Returns the point P of parameter U, the first, the second and the third derivative.
- param C
- type C
Adaptor2d_Curve2d
- 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
None
-
static
DN
()¶ - The returned vector gives the value of the derivative for the order of derivation N.
- param C
- type C
Adaptor2d_Curve2d
- param U
- type U
float
- param N
- type N
int
- rtype
gp_Vec2d
-
static
DeflCurvIntervals
()¶ - Returns the parameters bounding the intervals of subdivision of curve according to Curvature deflection. Value of deflection is defined in method. //!
- param C
- type C
Adaptor2d_Curve2d
- rtype
opencascade::handle<TColStd_HArray1OfReal>
-
static
Degree
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
int
-
static
Ellipse
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
gp_Elips2d
-
static
FirstParameter
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
float
-
static
GetType
()¶ - Returns the type of the curve in the current intervalLine, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- param C
- type C
Adaptor2d_Curve2d
- rtype
GeomAbs_CurveType
-
static
Hyperbola
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
gp_Hypr2d
-
static
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>.
- param C
- type C
Adaptor2d_Curve2d
- param T
- type T
TColStd_Array1OfReal
- param S
- type S
GeomAbs_Shape
- rtype
None
-
static
IsClosed
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
bool
-
static
IsPeriodic
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
bool
-
static
IsRational
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
bool
-
static
LastParameter
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
float
-
static
Line
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
gp_Lin2d
-
static
NbIntervals
()¶ - If necessary, breaks the curve in intervals of continuity <S>. And returns the number of intervals.
- param C
- type C
Adaptor2d_Curve2d
- param S
- type S
GeomAbs_Shape
- rtype
int
-
static
NbKnots
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
int
-
static
NbPoles
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
int
-
static
Parabola
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
gp_Parab2d
-
static
Period
()¶ - Parameters
C –
- type C
Adaptor2d_Curve2d
- rtype
float
-
static
Resolution
()¶ - Returns the parametric resolution corresponding to the real space resolution <R3d>.
- param C
- type C
Adaptor2d_Curve2d
- param R3d
- type R3d
float
- rtype
float
-
static
Value
()¶ - Computes the point of parameter U on the curve.
- param C
- type C
Adaptor2d_Curve2d
- param U
- type U
float
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
static
-
class
Extrema_CurveTool
¶ Bases:
object
-
static
BSpline
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
opencascade::handle<Geom_BSplineCurve>
-
static
Bezier
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
opencascade::handle<Geom_BezierCurve>
-
static
Circle
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
gp_Circ
-
static
Continuity
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
GeomAbs_Shape
-
static
D0
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- rtype
None
-
static
D1
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V
- type V
gp_Vec
- rtype
None
-
static
D2
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- rtype
None
-
static
D3
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- param V3
- type V3
gp_Vec
- rtype
None
-
static
DN
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- param N
- type N
int
- rtype
gp_Vec
-
static
DeflCurvIntervals
()¶ - Returns the parameters bounding the intervals of subdivision of curve according to Curvature deflection. Value of deflection is defined in method. //!
- param C
- type C
Adaptor3d_Curve
- rtype
opencascade::handle<TColStd_HArray1OfReal>
-
static
Degree
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
int
-
static
Ellipse
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
gp_Elips
-
static
FirstParameter
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
float
-
static
GetType
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
GeomAbs_CurveType
-
static
Hyperbola
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
gp_Hypr
-
static
Intervals
()¶ - Stores in <T> the parameters bounding the intervals of continuity <S>. //! The array must provide enough room to accomodate for the parameters. i.e. T.Length() > NbIntervals()
- param C
- type C
Adaptor3d_Curve
- param T
- type T
TColStd_Array1OfReal
- param S
- type S
GeomAbs_Shape
- rtype
None
-
static
IsPeriodic
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
bool
-
static
IsRational
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
bool
-
static
LastParameter
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
float
-
static
Line
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
gp_Lin
-
static
NbIntervals
()¶ - Returns the number of intervals for continuity <S>. May be one if Continuity(me) >= <S>
- param C
- type C
Adaptor3d_Curve
- param S
- type S
GeomAbs_Shape
- rtype
int
-
static
NbKnots
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
int
-
static
NbPoles
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
int
-
static
Parabola
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
gp_Parab
-
static
Period
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- rtype
float
-
static
Resolution
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param R3d
- type R3d
float
- rtype
float
-
static
Value
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param U
- type U
float
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
static
-
class
Extrema_ECC
(*args)¶ Bases:
object
- Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.
- rtype
None* It calculates all the distances. The function F(u,v)=distance(C1(u),C2(v)) has an extremum when gradient(f)=0. The algorithm uses Evtushenko’s global optimization solver.
- param C1
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- rtype
None* Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.
- param C1
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- rtype
None
-
GetSingleSolutionFlag
()¶ - Get flag for single extrema computation. Works on parametric solver only.
- rtype
bool
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns state of myParallel flag.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Performs calculations.
- rtype
None
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SetParams
()¶ - Set params in case of empty constructor is usage.
- param C1
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- rtype
None
-
SetSingleSolutionFlag
()¶ - Set flag for single extrema computation. Works on parametric solver only.
- param theSingleSolutionFlag
- type theSingleSolutionFlag
bool
- rtype
None
-
SetTolerance
()¶ - Parameters
Tol –
- type Tol
float
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth square extremum distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ECC2d
(*args)¶ Bases:
object
- Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.
- rtype
None* It calculates all the distances. The function F(u,v)=distance(C1(u),C2(v)) has an extremum when gradient(f)=0. The algorithm uses Evtushenko’s global optimization solver.
- param C1
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- rtype
None* Calculates all the distances as above between Uinf and Usup for C1 and between Vinf and Vsup for C2.
- param C1
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- rtype
None
-
GetSingleSolutionFlag
()¶ - Get flag for single extrema computation. Works on parametric solver only.
- rtype
bool
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns state of myParallel flag.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Performs calculations.
- rtype
None
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SetParams
()¶ - Set params in case of empty constructor is usage.
- param C1
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- rtype
None
-
SetSingleSolutionFlag
()¶ - Set flag for single extrema computation. Works on parametric solver only.
- param theSingleSolutionFlag
- type theSingleSolutionFlag
bool
- rtype
None
-
SetTolerance
()¶ - Parameters
Tol –
- type Tol
float
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth square extremum distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ELPCOfLocateExtPC
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Zeros are searched between uinf and usup. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None
-
Initialize
()¶ - initializes the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param TolF
default value is 1.0e-10
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the <N>th extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the <N>th extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the <N>th extremum square distance.
- param N
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist1 is a square distance between <P> and the point of parameter FirstParameter <P1> and dist2 is a square distance between <P> and the point of parameter LastParameter <P2>.
- param dist1
- type dist1
float
- param dist2
- type dist2
float
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ELPCOfLocateExtPC2d
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Zeros are searched between uinf and usup. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None
-
Initialize
()¶ - initializes the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param TolF
default value is 1.0e-10
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the <N>th extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt2d
- rtype
None
-
Point
()¶ - Returns the point of the <N>th extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the <N>th extremum square distance.
- param N
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist1 is a square distance between <P> and the point of parameter FirstParameter <P1> and dist2 is a square distance between <P> and the point of parameter LastParameter <P2>.
- param dist1
- type dist1
float
- param dist2
- type dist2
float
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_EPCOfELPCOfLocateExtPC
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param NbU: :type NbU: int :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Zeros are searched between umin and usup. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param NbU: :type NbU: int :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param NbU
- type NbU
int
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- rtype
None* sets the fields of the algorithm.
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_EPCOfELPCOfLocateExtPC2d
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param NbU: :type NbU: int :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Zeros are searched between umin and usup. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param NbU: :type NbU: int :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param NbU
- type NbU
int
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- rtype
None* sets the fields of the algorithm.
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt2d
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_EPCOfExtPC
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param NbU: :type NbU: int :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Zeros are searched between umin and usup. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param NbU: :type NbU: int :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param NbU
- type NbU
int
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- rtype
None* sets the fields of the algorithm.
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_EPCOfExtPC2d
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param NbU: :type NbU: int :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. NbU is used to locate the close points to find the zeros. Zeros are searched between umin and usup. Tol and TolU are used to decide to stop the iterations according to the following condition: if n is the number of iterations, abs(Un-Un-1) < TolU and abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param NbU: :type NbU: int :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param NbU
- type NbU
int
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None* sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- rtype
None* sets the fields of the algorithm.
- param NbU
- type NbU
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt2d
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtCC
(*args)¶ Bases:
object
- Parameters
TolC1 – default value is 1.0e-10 :type TolC1: float :param TolC2: default value is 1.0e-10 :type TolC2: float :rtype: None* It calculates all the distances. :param C1: :type C1: Adaptor3d_Curve :param C2: :type C2: Adaptor3d_Curve :param TolC1: default value is 1.0e-10 :type TolC1: float :param TolC2: default value is 1.0e-10 :type TolC2: float :rtype: None* It calculates all the distances. :param C1: :type C1: Adaptor3d_Curve :param C2: :type C2: Adaptor3d_Curve :param U1: :type U1: float :param U2: :type U2: float :param V1: :type V1: float :param V2: :type V2: float :param TolC1: default value is 1.0e-10 :type TolC1: float :param TolC2: default value is 1.0e-10 :type TolC2: float :rtype: None
-
GetSingleSolutionFlag
()¶ - Get flag for single extrema computation. Works on parametric solver only.
- rtype
bool
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the two curves are parallel.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SetCurve
()¶ - Parameters
theRank –
- type theRank
int
- param C
- type C
Adaptor3d_Curve
- rtype
None:param theRank:
- type theRank
int
- param C
- type C
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None
-
SetRange
()¶ - Parameters
theRank –
- type theRank
int
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None
-
SetSingleSolutionFlag
()¶ - Set flag for single extrema computation. Works on parametric solver only.
- param theSingleSolutionFlag
- type theSingleSolutionFlag
bool
- rtype
None
-
SetTolerance
()¶ - Parameters
theRank –
- type theRank
int
- param Tol
- type Tol
float
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist11 is a square distance between the point on C1 of parameter FirstParameter and the point of parameter FirstParameter on C2.
- param dist11
- type dist11
float
- param distP12
- type distP12
float
- param distP21
- type distP21
float
- param distP22
- type distP22
float
- param P11
- type P11
gp_Pnt
- param P12
- type P12
gp_Pnt
- param P21
- type P21
gp_Pnt
- param P22
- type P22
gp_Pnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtCC2d
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. :param C1: :type C1: Adaptor2d_Curve2d :param C2: :type C2: Adaptor2d_Curve2d :param TolC1: default value is 1.0e-10 :type TolC1: float :param TolC2: default value is 1.0e-10 :type TolC2: float :rtype: None* It calculates all the distances. :param C1: :type C1: Adaptor2d_Curve2d :param C2: :type C2: Adaptor2d_Curve2d :param U1: :type U1: float :param U2: :type U2: float :param V1: :type V1: float :param V2: :type V2: float :param TolC1: default value is 1.0e-10 :type TolC1: float :param TolC2: default value is 1.0e-10 :type TolC2: float :rtype: None
-
GetSingleSolutionFlag
()¶ - Get flag for single extrema computation. Works on parametric solver only.
- rtype
bool
-
Initialize
()¶ - initializes the fields.
- param C2
- type C2
Adaptor2d_Curve2d
- param V1
- type V1
float
- param V2
- type V2
float
- param TolC1
default value is 1.0e-10
- type TolC1
float
- param TolC2
default value is 1.0e-10
- type TolC2
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the two curves are parallel.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
C1 –
- type C1
Adaptor2d_Curve2d
- param U1
- type U1
float
- param U2
- type U2
float
- rtype
None
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SetSingleSolutionFlag
()¶ - Set flag for single extrema computation. Works on parametric solver only.
- param theSingleSolutionFlag
- type theSingleSolutionFlag
bool
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist11 is a square distance between the point on C1 of parameter FirstParameter and the point of parameter FirstParameter on C2.
- param dist11
- type dist11
float
- param distP12
- type distP12
float
- param distP21
- type distP21
float
- param distP22
- type distP22
float
- param P11
- type P11
gp_Pnt2d
- param P12
- type P12
gp_Pnt2d
- param P21
- type P21
gp_Pnt2d
- param P22
- type P22
gp_Pnt2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtCS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances between C and S. :param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :param TolC: :type TolC: float :param TolS: :type TolS: float :rtype: None* It calculates all the distances between C and S. UCinf and UCmax are the start and end parameters of the curve. :param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :param UCinf: :type UCinf: float :param UCsup: :type UCsup: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param Vinf: :type Vinf: float :param Vsup: :type Vsup: float :param TolC: :type TolC: float :param TolS: :type TolS: float :rtype: None
-
Initialize
()¶ - Initializes the fields of the algorithm.
- param S
- type S
Adaptor3d_Surface
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- param TolC
- type TolC
float
- param TolS
- type TolS
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the curve is on a parallel surface.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Computes the distances. An exception is raised if the fieds have not been initialized.
- param C
- type C
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None
-
Points
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnSurf
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtElC
(*args)¶ Bases:
object
- Return type
None* Calculates the distance between two lines. AngTol is used to test if the lines are parallel: Angle(C1,C2) < AngTol. :param C1: :type C1: gp_Lin :param C2: :type C2: gp_Lin :param AngTol: :type AngTol: float :rtype: None* Calculates the distance between a line and a circle. :param C1: :type C1: gp_Lin :param C2: :type C2: gp_Circ :param Tol: :type Tol: float :rtype: None* Calculates the distance between a line and an elipse. :param C1: :type C1: gp_Lin :param C2: :type C2: gp_Elips :rtype: None* Calculates the distance between a line and a hyperbola. :param C1: :type C1: gp_Lin :param C2: :type C2: gp_Hypr :rtype: None* Calculates the distance between a line and a parabola. :param C1: :type C1: gp_Lin :param C2: :type C2: gp_Parab :rtype: None* Calculates the distance between two circles. The circles can be parallel or identical. :param C1: :type C1: gp_Circ :param C2: :type C2: gp_Circ :rtype: None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the two curves are parallel.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtElC2d
(*args)¶ Bases:
object
- Return type
None* Calculates the distance between two lines. AngTol is used to test if the lines are parallel: Angle(C1,C2) < AngTol. :param C1: :type C1: gp_Lin2d :param C2: :type C2: gp_Lin2d :param AngTol: :type AngTol: float :rtype: None* Calculates the distance between a line and a circle. :param C1: :type C1: gp_Lin2d :param C2: :type C2: gp_Circ2d :param Tol: :type Tol: float :rtype: None* Calculates the distance between a line and an elipse. :param C1: :type C1: gp_Lin2d :param C2: :type C2: gp_Elips2d :rtype: None* Calculates the distance between a line and a hyperbola. :param C1: :type C1: gp_Lin2d :param C2: :type C2: gp_Hypr2d :rtype: None* Calculates the distance between a line and a parabola. :param C1: :type C1: gp_Lin2d :param C2: :type C2: gp_Parab2d :rtype: None* Calculates the distance between two circles. The circles can be parallel or identical. :param C1: :type C1: gp_Circ2d :param C2: :type C2: gp_Circ2d :rtype: None* Calculates the distance between a circle and an elipse. :param C1: :type C1: gp_Circ2d :param C2: :type C2: gp_Elips2d :rtype: None* Calculates the distance between a circle and a hyperbola. :param C1: :type C1: gp_Circ2d :param C2: :type C2: gp_Hypr2d :rtype: None* Calculates the distance between a circle and a parabola. :param C1: :type C1: gp_Circ2d :param C2: :type C2: gp_Parab2d :rtype: None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the two curves are parallel.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the first curve, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtElCS
(*args)¶ Bases:
object
- Return type
None* Calculates the distances between a line and a plane. The line can be on the plane or on a parallel plane. :param C: :type C: gp_Lin :param S: :type S: gp_Pln :rtype: None* Calculates the distances between a line and a cylinder. :param C: :type C: gp_Lin :param S: :type S: gp_Cylinder :rtype: None* Calculates the distances between a line and a cone. :param C: :type C: gp_Lin :param S: :type S: gp_Cone :rtype: None* Calculates the distances between a line and a sphere. :param C: :type C: gp_Lin :param S: :type S: gp_Sphere :rtype: None* Calculates the distances between a line and a torus. :param C: :type C: gp_Lin :param S: :type S: gp_Torus :rtype: None* Calculates the distances between a circle and a plane. :param C: :type C: gp_Circ :param S: :type S: gp_Pln :rtype: None* Calculates the distances between a circle and a cylinder. :param C: :type C: gp_Circ :param S: :type S: gp_Cylinder :rtype: None* Calculates the distances between a circle and a cone. :param C: :type C: gp_Circ :param S: :type S: gp_Cone :rtype: None* Calculates the distances between a circle and a sphere. :param C: :type C: gp_Circ :param S: :type S: gp_Sphere :rtype: None* Calculates the distances between a circle and a torus. :param C: :type C: gp_Circ :param S: :type S: gp_Torus :rtype: None* Calculates the distances between a hyperbola and a plane. :param C: :type C: gp_Hypr :param S: :type S: gp_Pln :rtype: None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the curve is on a parallel surface.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
C –
- type C
gp_Lin
- param S
- type S
gp_Pln
- rtype
None:param C:
- type C
gp_Lin
- param S
- type S
gp_Cylinder
- rtype
None:param C:
- type C
gp_Lin
- param S
- type S
gp_Cone
- rtype
None:param C:
- type C
gp_Lin
- param S
- type S
gp_Sphere
- rtype
None:param C:
- type C
gp_Lin
- param S
- type S
gp_Torus
- rtype
None:param C:
- type C
gp_Circ
- param S
- type S
gp_Pln
- rtype
None:param C:
- type C
gp_Circ
- param S
- type S
gp_Cylinder
- rtype
None:param C:
- type C
gp_Circ
- param S
- type S
gp_Cone
- rtype
None:param C:
- type C
gp_Circ
- param S
- type S
gp_Sphere
- rtype
None:param C:
- type C
gp_Circ
- param S
- type S
gp_Torus
- rtype
None:param C:
- type C
gp_Hypr
- param S
- type S
gp_Pln
- rtype
None
-
Points
()¶ - Returns the points of the Nth extremum distance. P1 is on the curve, P2 on the surface.
- param N
- type N
int
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnSurf
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtElSS
(*args)¶ Bases:
object
- Return type
None* Calculates the distances between 2 planes. These planes can be parallel. :param S1: :type S1: gp_Pln :param S2: :type S2: gp_Pln :rtype: None* Calculates the distances between a plane and a sphere. :param S1: :type S1: gp_Pln :param S2: :type S2: gp_Sphere :rtype: None* Calculates the distances between 2 spheres. These spheres can be parallel. :param S1: :type S1: gp_Sphere :param S2: :type S2: gp_Sphere :rtype: None* Calculates the distances between a sphere and a cylinder. :param S1: :type S1: gp_Sphere :param S2: :type S2: gp_Cylinder :rtype: None* Calculates the distances between a sphere and a cone. :param S1: :type S1: gp_Sphere :param S2: :type S2: gp_Cone :rtype: None* Calculates the distances between a sphere and a torus. :param S1: :type S1: gp_Sphere :param S2: :type S2: gp_Torus :rtype: None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the two surfaces are parallel.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
S1 –
- type S1
gp_Pln
- param S2
- type S2
gp_Pln
- rtype
None:param S1:
- type S1
gp_Pln
- param S2
- type S2
gp_Sphere
- rtype
None:param S1:
- type S1
gp_Sphere
- param S2
- type S2
gp_Sphere
- rtype
None:param S1:
- type S1
gp_Sphere
- param S2
- type S2
gp_Cylinder
- rtype
None:param S1:
- type S1
gp_Sphere
- param S2
- type S2
gp_Cone
- rtype
None:param S1:
- type S1
gp_Sphere
- param S2
- type S2
gp_Torus
- rtype
None
-
Points
()¶ - Returns the points for the Nth resulting distance. P1 is on the first surface, P2 on the second one.
- param N
- type N
int
- param P1
- type P1
Extrema_POnSurf
- param P2
- type P2
Extrema_POnSurf
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
default value is 1
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPC
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Zeros are searched between uinf and usup. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None
-
Initialize
()¶ - initializes the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param TolF
default value is 1.0e-10
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the <N>th extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the <N>th extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the <N>th extremum square distance.
- param N
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist1 is a square distance between <P> and the point of parameter FirstParameter <P1> and dist2 is a square distance between <P> and the point of parameter LastParameter <P2>.
- param dist1
- type dist1
float
- param dist2
- type dist2
float
- param P1
- type P1
gp_Pnt
- param P2
- type P2
gp_Pnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPC2d
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Zeros are searched between uinf and usup. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None* It calculates all the distances. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs all the zeros inside the definition range of the curve. Tol is used to decide to stop the iterations according to the following condition: if n is the number of iterations, the algorithm stops when abs(F(Un)-F(Un-1)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param TolF: default value is 1.0e-10 :type TolF: float :rtype: None
-
Initialize
()¶ - initializes the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param TolF
default value is 1.0e-10
- type TolF
float
- rtype
None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the <N>th extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt2d
- rtype
None
-
Point
()¶ - Returns the point of the <N>th extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the <N>th extremum square distance.
- param N
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the curve is a trimmed curve, dist1 is a square distance between <P> and the point of parameter FirstParameter <P1> and dist2 is a square distance between <P> and the point of parameter LastParameter <P2>.
- param dist1
- type dist1
float
- param dist2
- type dist2
float
- param P1
- type P1
gp_Pnt2d
- param P2
- type P2
gp_Pnt2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPElC
(*args)¶ Bases:
object
- Return type
None* Calculates the extremum distance between the point P and the segment [Uinf,Usup] of the line C. :param P: :type P: gp_Pnt :param C: :type C: gp_Lin :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 2 extremum distances between the point P and the segment [Uinf,Usup] of the circle C. Tol is used to determine if P is on the axis of the circle or if an extremum is on an endpoint of the segment. If P is on the axis of the circle, there are infinite solution then IsDone(me)=False. The conditions on the Uinf and Usup are: 0. <= Uinf <= 2.*PI and Usup > Uinf. If Usup > Uinf + 2.*PI, then only the solutions in the range [Uinf,Uinf+2.*PI[ are computed. :param P: :type P: gp_Pnt :param C: :type C: gp_Circ :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 4 extremum distances between the point P and the segment [Uinf,Usup] of the elipse C. Tol is used to determine if the point is on the axis of the elipse and if the major radius is equal to the minor radius or if an extremum is on an endpoint of the segment. If P is on the axis of the elipse, there are infinite solution then IsDone(me)=False. The conditions on the Uinf and Usup are: 0. <= Uinf <= 2.*PI and Usup > Uinf. If Usup > Uinf + 2.*PI, then only the solutions in the range [Uinf,Uinf+2.*PI[ are computed. :param P: :type P: gp_Pnt :param C: :type C: gp_Elips :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the extremum distances between the point P and the segment [Uinf,Usup] of the hyperbola C. Tol is used to determine if two solutions u and v are identical; the condition is: dist(C(u),C(v)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: gp_Hypr :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 4 extremum distances between the point P and the segment [Uinf,Usup] of the parabola C. Tol is used to determine if two solutions u and v are identical; the condition is: dist(C(u),C(v)) < Tol. :param P: :type P: gp_Pnt :param C: :type C: gp_Parab :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt
- param C
- type C
gp_Lin
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt
- param C
- type C
gp_Circ
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt
- param C
- type C
gp_Elips
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt
- param C
- type C
gp_Hypr
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt
- param C
- type C
gp_Parab
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPElC2d
(*args)¶ Bases:
object
- Return type
None* Calculates the extremum distance between the point P and the segment [Uinf,Usup] of the line L. :param P: :type P: gp_Pnt2d :param C: :type C: gp_Lin2d :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 2 extremum distances between the point P and the segment [Uinf,Usup] of the circle C. Tol is used to determine if P is on the axis of the circle or if an extremum is on an endpoint of the segment. If P is on the axis of the circle, there are infinite solution then IsDone(me)=False. The conditions on the Uinf and Usup are: 0. <= Uinf <= 2.*PI and Usup > Uinf. If Usup > Uinf + 2.*PI, then only the solutions in the range [Uinf,Uinf+2.*PI[ are computed. :param P: :type P: gp_Pnt2d :param C: :type C: gp_Circ2d :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 4 extremum distances between the point P and the segment [Uinf,Usup] of the elipse C. Tol is used to determine if the point is on the axis of the elipse and if the major radius is equal to the minor radius or if an extremum is on an endpoint of the segment. If P is on the axis of the elipse, there are infinite solution then IsDone(me)=False. The conditions on the Uinf and Usup are: 0. <= Uinf <= 2.*PI and Usup > Uinf. If Usup > Uinf + 2.*PI, then only the solutions in the range [Uinf,Uinf+2.*PI[ are computed. :param P: :type P: gp_Pnt2d :param C: :type C: gp_Elips2d :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the extremum distances between the point P and the segment [Uinf,Usup] of the hyperbola C. Tol is used to determine if two solutions u and v are identical; the condition is: dist(C(u),C(v)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: gp_Hypr2d :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None* Calculates the 4 extremum distances between the point P and the segment [Uinf,Usup] of the parabola C. Tol is used to determine if two solutions u and v are identical; the condition is: dist(C(u),C(v)) < Tol. :param P: :type P: gp_Pnt2d :param C: :type C: gp_Parab2d :param Tol: :type Tol: float :param Uinf: :type Uinf: float :param Usup: :type Usup: float :rtype: None
-
IsDone
()¶ - True if the distances are found.
- rtype
bool
-
IsMin
()¶ - Returns True if the Nth extremum distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt2d
- param L
- type L
gp_Lin2d
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt2d
- param C
- type C
gp_Circ2d
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt2d
- param C
- type C
gp_Elips2d
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt2d
- param C
- type C
gp_Hypr2d
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None:param P:
- type P
gp_Pnt2d
- param C
- type C
gp_Parab2d
- param Tol
- type Tol
float
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- rtype
None
-
Point
()¶ - Returns the point of the Nth extremum distance.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the Nth extremum square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPElS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances between a point and a cylinder from gp. Tol is used to test if the point is on the axis. :param P: :type P: gp_Pnt :param S: :type S: gp_Cylinder :param Tol: :type Tol: float :rtype: None* It calculates all the distances between a point and a plane from gp. Tol is used to test if the point is on the plane. :param P: :type P: gp_Pnt :param S: :type S: gp_Pln :param Tol: :type Tol: float :rtype: None* It calculates all the distances between a point and a cone from gp. Tol is used to test if the point is at the apex or on the axis. :param P: :type P: gp_Pnt :param S: :type S: gp_Cone :param Tol: :type Tol: float :rtype: None* It calculates all the distances between a point and a torus from gp. Tol is used to test if the point is on the axis. :param P: :type P: gp_Pnt :param S: :type S: gp_Torus :param Tol: :type Tol: float :rtype: None* It calculates all the distances between a point and a sphere from gp. Tol is used to test if the point is at the center. :param P: :type P: gp_Pnt :param S: :type S: gp_Sphere :param Tol: :type Tol: float :rtype: None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt
- param S
- type S
gp_Cylinder
- param Tol
- type Tol
float
- rtype
None:param P:
- type P
gp_Pnt
- param S
- type S
gp_Pln
- param Tol
- type Tol
float
- rtype
None:param P:
- type P
gp_Pnt
- param S
- type S
gp_Cone
- param Tol
- type Tol
float
- rtype
None:param P:
- type P
gp_Pnt
- param S
- type S
gp_Torus
- param Tol
- type Tol
float
- rtype
None:param P:
- type P
gp_Pnt
- param S
- type S
gp_Sphere
- param Tol
- type Tol
float
- rtype
None
-
Point
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPExtS
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None* It calculates all the distances between a point from gp and a Surface. :param P: :type P: gp_Pnt :param S: :type S: GeomAdaptor_HSurfaceOfLinearExtrusion :param Umin: :type Umin: float :param Usup: :type Usup: float :param Vmin: :type Vmin: float :param Vsup: :type Vsup: float :param TolU: :type TolU: float :param TolV: :type TolV: float :rtype: None* It calculates all the distances between a point from gp and a Surface. :param P: :type P: gp_Pnt :param S: :type S: GeomAdaptor_HSurfaceOfLinearExtrusion :param TolU: :type TolU: float :param TolV: :type TolV: float :rtype: None
-
static
DownCast
(t)¶
-
Initialize
()¶ - Initializes the fields of the algorithm.
- param S
- type S
GeomAdaptor_HSurfaceOfLinearExtrusion
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPRevS
(*args)¶ Bases:
OCC.Core.Standard.Standard_Transient
- Return type
None* It calculates all the distances between a point from gp and a SurfacePtr from Adaptor3d. :param P: :type P: gp_Pnt :param S: :type S: GeomAdaptor_HSurfaceOfRevolution :param Umin: :type Umin: float :param Usup: :type Usup: float :param Vmin: :type Vmin: float :param Vsup: :type Vsup: float :param TolU: :type TolU: float :param TolV: :type TolV: float :rtype: None* It calculates all the distances between a point from gp and a SurfacePtr from Adaptor3d. :param P: :type P: gp_Pnt :param S: :type S: GeomAdaptor_HSurfaceOfRevolution :param TolU: :type TolU: float :param TolV: :type TolV: float :rtype: None
-
static
DownCast
(t)¶
-
Initialize
()¶ - Parameters
S –
- type S
GeomAdaptor_HSurfaceOfRevolution
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param Vmin
- type Vmin
float
- param Vsup
- type Vsup
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtPS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . :param P: :type P: gp_Pnt :param S: :type S: Adaptor3d_Surface :param TolU: :type TolU: float :param TolV: :type TolV: float :param F: default value is Extrema_ExtFlag_MINMAX :type F: Extrema_ExtFlag :param A: default value is Extrema_ExtAlgo_Grad :type A: Extrema_ExtAlgo :rtype: None* It calculates all the distances. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . :param P: :type P: gp_Pnt :param S: :type S: Adaptor3d_Surface :param Uinf: :type Uinf: float :param Usup: :type Usup: float :param Vinf: :type Vinf: float :param Vsup: :type Vsup: float :param TolU: :type TolU: float :param TolV: :type TolV: float :param F: default value is Extrema_ExtFlag_MINMAX :type F: Extrema_ExtFlag :param A: default value is Extrema_ExtAlgo_Grad :type A: Extrema_ExtAlgo :rtype: None
-
Initialize
()¶ - Initializes the fields of the algorithm.
- param S
- type S
Adaptor3d_Surface
- param Uinf
- type Uinf
float
- param Usup
- type Usup
float
- param Vinf
- type Vinf
float
- param Vsup
- type Vsup
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Computes the distances. An exception is raised if the fieds have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SetAlgo
()¶ - Parameters
A –
- type A
Extrema_ExtAlgo
- rtype
None
-
SetFlag
()¶ - Parameters
F –
- type F
Extrema_ExtFlag
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
TrimmedSquareDistances
()¶ - if the surface is a trimmed surface, dUfVf is a square distance between <P> and the point of parameter FirstUParameter and FirstVParameter <PUfVf>. dUfVl is a square distance between <P> and the point of parameter FirstUParameter and LastVParameter <PUfVl>. dUlVf is a square distance between <P> and the point of parameter LastUParameter and FirstVParameter <PUlVf>. dUlVl is a square distance between <P> and the point of parameter LastUParameter and LastVParameter <PUlVl>.
- param dUfVf
- type dUfVf
float
- param dUfVl
- type dUfVl
float
- param dUlVf
- type dUlVf
float
- param dUlVl
- type dUlVl
float
- param PUfVf
- type PUfVf
gp_Pnt
- param PUfVl
- type PUfVl
gp_Pnt
- param PUlVf
- type PUlVf
gp_Pnt
- param PUlVl
- type PUlVl
gp_Pnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_ExtSS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances between S1 and S2. :param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :param TolS1: :type TolS1: float :param TolS2: :type TolS2: float :rtype: None* It calculates all the distances between S1 and S2. :param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :param Uinf1: :type Uinf1: float :param Usup1: :type Usup1: float :param Vinf1: :type Vinf1: float :param Vsup1: :type Vsup1: float :param Uinf2: :type Uinf2: float :param Usup2: :type Usup2: float :param Vinf2: :type Vinf2: float :param Vsup2: :type Vsup2: float :param TolS1: :type TolS1: float :param TolS2: :type TolS2: float :rtype: None
-
Initialize
()¶ - Initializes the fields of the algorithm.
- param S2
- type S2
Adaptor3d_Surface
- param Uinf2
- type Uinf2
float
- param Usup2
- type Usup2
float
- param Vinf2
- type Vinf2
float
- param Vsup2
- type Vsup2
float
- param TolS1
- type TolS1
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
IsParallel
()¶ - Returns True if the curve is on a parallel surface.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - Computes the distances. An exception is raised if the fieds have not been initialized.
- param S1
- type S1
Adaptor3d_Surface
- param Uinf1
- type Uinf1
float
- param Usup1
- type Usup1
float
- param Vinf1
- type Vinf1
float
- param Vsup1
- type Vsup1
float
- param TolS1
- type TolS1
float
- rtype
None
-
Points
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- param P1
- type P1
Extrema_POnSurf
- param P2
- type P2
Extrema_POnSurf
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_FuncExtCS
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Return type
None:param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :rtype: None
-
Initialize
()¶ - sets the field mysurf of the function.
- param C
- type C
Adaptor3d_Curve
- param S
- type S
Adaptor3d_Surface
- rtype
None
-
NbExt
()¶ - Return the number of found extrema.
- rtype
int
-
PointOnCurve
()¶ - Returns the Nth extremum on C.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
PointOnSurface
()¶ - Return the Nth extremum on S.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Return the value of the Nth distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_FuncExtSS
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Return type
None:param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :rtype: None
-
Initialize
()¶ - sets the field mysurf of the function.
- param S1
- type S1
Adaptor3d_Surface
- param S2
- type S2
Adaptor3d_Surface
- rtype
None
-
NbExt
()¶ - Return the number of found extrema.
- rtype
int
-
PointOnS1
()¶ - Return the Nth extremum on S1.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
PointOnS2
()¶ - Renvoie le Nieme extremum sur S2.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Return the value of the Nth distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_FuncPSDist
(*args)¶ Bases:
OCC.Core.math.math_MultipleVarFunctionWithGradient
- Constructor.
- param theS
- type theS
Adaptor3d_Surface
- param theP
- type theP
gp_Pnt
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_FuncPSNorm
(*args)¶ Bases:
OCC.Core.math.math_FunctionSetWithDerivatives
- Return type
None:param P: :type P: gp_Pnt :param S: :type S: Adaptor3d_Surface :rtype: None
-
Initialize
()¶ - sets the field mysurf of the function.
- param S
- type S
Adaptor3d_Surface
- rtype
None
-
NbExt
()¶ - Return the number of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SetPoint
()¶ - sets the field mysurf of the function.
- param P
- type P
gp_Pnt
- rtype
None
-
SquareDistance
()¶ - Return the value of the Nth distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenExtCS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u,v)=distance(S1(u1,v1),S2(u2,v2)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surfaces. NbU and NbV are used to locate the close points on the surface and NbT on the curve to find the zeros. :param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :param NbT: :type NbT: int :param NbU: :type NbU: int :param NbV: :type NbV: int :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None* It calculates all the distances. The function F(u,v)=distance(P,S(u,v)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surface. NbT,NbU and NbV are used to locate the close points to find the zeros. :param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :param NbT: :type NbT: int :param NbU: :type NbU: int :param NbV: :type NbV: int :param tmin: :type tmin: float :param tsup: :type tsup: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param Vmin: :type Vmin: float :param Vsup: :type Vsup: float :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None
-
Initialize
()¶ - Parameters
S –
- type S
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param Tol2
- type Tol2
float
- rtype
None:param S:
- type S
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param Vmin
- type Vmin
float
- param Vsup
- type Vsup
float
- param Tol2
- type Tol2
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with S An exception is raised if the fields have not been initialized.
- param C
- type C
Adaptor3d_Curve
- param NbT
- type NbT
int
- param Tol1
- type Tol1
float
- rtype
None* the algorithm is done with C An exception is raised if the fields have not been initialized.
- param C
- type C
Adaptor3d_Curve
- param NbT
- type NbT
int
- param tmin
- type tmin
float
- param tsup
- type tsup
float
- param Tol1
- type Tol1
float
- rtype
None
-
PointOnCurve
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
PointOnSurface
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenExtPS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u,v)=distance(P,S(u,v)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surface. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . :param P: :type P: gp_Pnt :param S: :type S: Adaptor3d_Surface :param NbU: :type NbU: int :param NbV: :type NbV: int :param TolU: :type TolU: float :param TolV: :type TolV: float :param F: default value is Extrema_ExtFlag_MINMAX :type F: Extrema_ExtFlag :param A: default value is Extrema_ExtAlgo_Grad :type A: Extrema_ExtAlgo :rtype: None* It calculates all the distances. The function F(u,v)=distance(P,S(u,v)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surface. NbU and NbV are used to locate the close points to find the zeros. They must be great enough such that if there is N extrema, there will be N extrema between P and the grid. TolU et TolV are used to determine the conditions to stop the iterations; at the iteration number n: (Un - Un-1) < TolU and (Vn - Vn-1) < TolV . :param P: :type P: gp_Pnt :param S: :type S: Adaptor3d_Surface :param NbU: :type NbU: int :param NbV: :type NbV: int :param Umin: :type Umin: float :param Usup: :type Usup: float :param Vmin: :type Vmin: float :param Vsup: :type Vsup: float :param TolU: :type TolU: float :param TolV: :type TolV: float :param F: default value is Extrema_ExtFlag_MINMAX :type F: Extrema_ExtFlag :param A: default value is Extrema_ExtAlgo_Grad :type A: Extrema_ExtAlgo :rtype: None
-
Initialize
()¶ - Parameters
S –
- type S
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None:param S:
- type S
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param Vmin
- type Vmin
float
- param Vsup
- type Vsup
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- rtype
None
-
Point
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SetAlgo
()¶ - Parameters
A –
- type A
Extrema_ExtAlgo
- rtype
None
-
SetFlag
()¶ - Parameters
F –
- type F
Extrema_ExtFlag
- rtype
None
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenExtSS
(*args)¶ Bases:
object
- Return type
None* It calculates all the distances. The function F(u,v)=distance(S1(u1,v1),S2(u2,v2)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surfaces. NbU and NbV are used to locate the close points to find the zeros. :param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :param NbU: :type NbU: int :param NbV: :type NbV: int :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None* It calculates all the distances. The function F(u,v)=distance(P,S(u,v)) has an extremum when gradient(F)=0. The algorithm searchs all the zeros inside the definition ranges of the surface. NbU and NbV are used to locate the close points to find the zeros. :param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :param NbU: :type NbU: int :param NbV: :type NbV: int :param U1min: :type U1min: float :param U1sup: :type U1sup: float :param V1min: :type V1min: float :param V1sup: :type V1sup: float :param U2min: :type U2min: float :param U2sup: :type U2sup: float :param V2min: :type V2min: float :param V2sup: :type V2sup: float :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None
-
Initialize
()¶ - Parameters
S2 –
- type S2
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param Tol2
- type Tol2
float
- rtype
None:param S2:
- type S2
Adaptor3d_Surface
- param NbU
- type NbU
int
- param NbV
- type NbV
int
- param U2min
- type U2min
float
- param U2sup
- type U2sup
float
- param V2min
- type V2min
float
- param V2sup
- type V2sup
float
- param Tol2
- type Tol2
float
- rtype
None
-
IsDone
()¶ - Returns True if the distances are found.
- rtype
bool
-
NbExt
()¶ - Returns the number of extremum distances.
- rtype
int
-
Perform
()¶ - the algorithm is done with S1 An exception is raised if the fields have not been initialized.
- param S1
- type S1
Adaptor3d_Surface
- param Tol1
- type Tol1
float
- rtype
None* the algorithm is done withS1 An exception is raised if the fields have not been initialized.
- param S1
- type S1
Adaptor3d_Surface
- param U1min
- type U1min
float
- param U1sup
- type U1sup
float
- param V1min
- type V1min
float
- param V1sup
- type V1sup
float
- param Tol1
- type Tol1
float
- rtype
None
-
PointOnS1
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
PointOnS2
()¶ - Returns the point of the Nth resulting distance.
- param N
- type N
int
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the Nth resulting square distance.
- param N
- type N
int
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenLocateExtCS
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with two close points. The close points are defined by the parameter values T for C and (U,V) for S. The function F(t,u,v)=distance(C(t),S(u,v)) has an extremun when gradient(F)=0. The algorithm searchs a zero near the close points. :param C: :type C: Adaptor3d_Curve :param S: :type S: Adaptor3d_Surface :param T: :type T: float :param U: :type U: float :param V: :type V: float :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Perform
()¶ - Parameters
C –
- type C
Adaptor3d_Curve
- param S
- type S
Adaptor3d_Surface
- param T
- type T
float
- param U
- type U
float
- param V
- type V
float
- param Tol1
- type Tol1
float
- param Tol2
- type Tol2
float
- rtype
None
-
PointOnCurve
()¶ - Returns the point of the extremum distance on C.
- rtype
Extrema_POnCurv
-
PointOnSurface
()¶ - Returns the point of the extremum distance on S.
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenLocateExtPS
(*args)¶ Bases:
object
- Constructor.
- param theS
- type theS
Adaptor3d_Surface
- param theTolU
default value is Precision::Confusion()
- type theTolU
float
- param theTolV
default value is Precision::Confusion()
- type theTolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Perform
()¶ - Calculates the extrema between the point and the surface using a close point. The close point is defined by the parameter values theU0 and theV0. Type of the algorithm depends on the isDistanceCriteria flag. If flag value is false - normal projection criteria will be used. If flag value is true - distance criteria will be used.
- param theP
- type theP
gp_Pnt
- param theU0
- type theU0
float
- param theV0
- type theV0
float
- param isDistanceCriteria
default value is Standard_False
- type isDistanceCriteria
bool
- rtype
None
-
Point
()¶ - Returns the point of the extremum distance.
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GenLocateExtSS
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with two close points. The close points are defined by the parameter values (U1,V1) for S1 and (U2,V2) for S2. The function F(u1,v1,u2,v2)=distance(S1(u1,v1),S2(u2,v2)) has an extremun when gradient(F)=0. The algorithm searchs a zero near the close points. :param S1: :type S1: Adaptor3d_Surface :param S2: :type S2: Adaptor3d_Surface :param U1: :type U1: float :param V1: :type V1: float :param U2: :type U2: float :param V2: :type V2: float :param Tol1: :type Tol1: float :param Tol2: :type Tol2: float :rtype: None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Perform
()¶ - Parameters
S1 –
- type S1
Adaptor3d_Surface
- param S2
- type S2
Adaptor3d_Surface
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- param Tol1
- type Tol1
float
- param Tol2
- type Tol2
float
- rtype
None
-
PointOnS1
()¶ - Returns the point of the extremum distance on S1.
- rtype
Extrema_POnSurf
-
PointOnS2
()¶ - Returns the point of the extremum distance on S2.
- rtype
Extrema_POnSurf
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_GlobOptFuncCCC0
(*args)¶ Bases:
OCC.Core.math.math_MultipleVarFunction
- Parameters
C1 –
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- rtype
None:param C1:
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_GlobOptFuncCCC1
(*args)¶ Bases:
OCC.Core.math.math_MultipleVarFunctionWithGradient
- Parameters
C1 –
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- rtype
None:param C1:
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_GlobOptFuncCCC2
(*args)¶ Bases:
OCC.Core.math.math_MultipleVarFunctionWithHessian
- Parameters
C1 –
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- rtype
None:param C1:
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- rtype
None
-
Values
()¶ - Parameters
X –
- type X
math_Vector
- param F
- type F
float
- param G
- type G
math_Vector
- rtype
bool:param X:
- type X
math_Vector
- param F
- type F
float
- param G
- type G
math_Vector
- param H
- type H
math_Matrix
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
Extrema_GlobOptFuncCS
(*args)¶ Bases:
OCC.Core.math.math_MultipleVarFunctionWithHessian
- Curve and surface should exist during all the lifetime of Extrema_GlobOptFuncCS.
- param C
- type C
Adaptor3d_Curve *
- param S
- type S
Adaptor3d_Surface *
- rtype
None
-
Values
()¶ - Parameters
theX –
- type theX
math_Vector
- param theF
- type theF
float
- param theG
- type theG
math_Vector
- rtype
bool:param theX:
- type theX
math_Vector
- param theF
- type theF
float
- param theG
- type theG
math_Vector
- param theH
- type theH
math_Matrix
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray1OfPOnCurv
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array1OfPOnCurv
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1
()¶
-
ChangeArray1
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray1OfPOnCurv2d
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array1OfPOnCurv2d
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1
()¶
-
ChangeArray1
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray1OfPOnSurf
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array1OfPOnSurf
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array1
()¶
-
ChangeArray1
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray2OfPOnCurv
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array2OfPOnCurv
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array2
()¶
-
ChangeArray2
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray2OfPOnCurv2d
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array2OfPOnCurv2d
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array2
()¶
-
ChangeArray2
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray2OfPOnSurf
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array2OfPOnSurf
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array2
()¶
-
ChangeArray2
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_HArray2OfPOnSurfParams
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_Array2OfPOnSurfParams
,OCC.Core.Standard.Standard_Transient
Empty constructor
- Return type
None* Copy constructor – does nothing
- Parameters
& (Standard_Transient) –
- Return type
-
Array2
()¶
-
ChangeArray2
()¶
-
static
DownCast
(t)¶
-
property
thisown
¶ The membership flag
-
class
Extrema_LocECC
(*args)¶ Bases:
object
- Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point.
- param C1
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- param U0
- type U0
float
- param V0
- type V0
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Point
()¶ - Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one.
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocECC2d
(*args)¶ Bases:
object
- Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point.
- param C1
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- param U0
- type U0
float
- param V0
- type V0
float
- param TolU
- type TolU
float
- param TolV
- type TolV
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Point
()¶ - Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one.
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocEPCOfLocateExtPC
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param U0: :type U0: float :param TolU: :type TolU: float :rtype: None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. Zeros are searched between Umin et Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param U0: :type U0: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
IsMin
()¶ - Returns True if the extremum distance is a minimum.
- rtype
bool
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt
- param U0
- type U0
float
- rtype
None
-
Point
()¶ - Returns the point of the extremum distance.
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocEPCOfLocateExtPC2d
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param TolU: :type TolU: float :rtype: None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. Zeros are searched between Umin et Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolU: :type TolU: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolU
- type TolU
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
IsMin
()¶ - Returns True if the extremum distance is a minimum.
- rtype
bool
-
Perform
()¶ - the algorithm is done with the point P. An exception is raised if the fields have not been initialized.
- param P
- type P
gp_Pnt2d
- param U0
- type U0
float
- rtype
None
-
Point
()¶ - Returns the point of the extremum distance.
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocateExtCC
(*args)¶ Bases:
object
- Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point.
- param C1
- type C1
Adaptor3d_Curve
- param C2
- type C2
Adaptor3d_Curve
- param U0
- type U0
float
- param V0
- type V0
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Point
()¶ - Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one.
- param P1
- type P1
Extrema_POnCurv
- param P2
- type P2
Extrema_POnCurv
- rtype
None
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocateExtCC2d
(*args)¶ Bases:
object
- Calculates the distance with a close point. The close point is defined by a parameter value on each curve. The function F(u,v)=distance(C1(u),C2(v)) has an extremun when gradient(f)=0. The algorithm searchs the zero near the close point.
- param C1
- type C1
Adaptor2d_Curve2d
- param C2
- type C2
Adaptor2d_Curve2d
- param U0
- type U0
float
- param V0
- type V0
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
Point
()¶ - Returns the points of the extremum distance. P1 is on the first curve, P2 on the second one.
- param P1
- type P1
Extrema_POnCurv2d
- param P2
- type P2
Extrema_POnCurv2d
- rtype
None
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocateExtPC
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. TolF is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolF. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param U0: :type U0: float :param TolF: :type TolF: float :rtype: None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. Zeros are searched between Umin et Usup. TolF is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolF. :param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :param U0: :type U0: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor3d_Curve
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
IsMin
()¶ - Returns True if the extremum distance is a minimum.
- rtype
bool
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt
- param U0
- type U0
float
- rtype
None
-
Point
()¶ - Returns the point of the extremum distance.
- rtype
Extrema_POnCurv
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_LocateExtPC2d
(*args)¶ Bases:
object
- Return type
None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. TolF is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolF. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param TolF: :type TolF: float :rtype: None* Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searchs a zero near the close point. Zeros are searched between Umin et Usup. TolF is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolF. :param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :param U0: :type U0: float :param Umin: :type Umin: float :param Usup: :type Usup: float :param TolF: :type TolF: float :rtype: None
-
Initialize
()¶ - sets the fields of the algorithm.
- param C
- type C
Adaptor2d_Curve2d
- param Umin
- type Umin
float
- param Usup
- type Usup
float
- param TolF
- type TolF
float
- rtype
None
-
IsDone
()¶ - Returns True if the distance is found.
- rtype
bool
-
IsMin
()¶ - Returns True if the extremum distance is a minimum.
- rtype
bool
-
Perform
()¶ - Parameters
P –
- type P
gp_Pnt2d
- param U0
- type U0
float
- rtype
None
-
Point
()¶ - Returns the point of the extremum distance.
- rtype
Extrema_POnCurv2d
-
SquareDistance
()¶ - Returns the value of the extremum square distance.
- rtype
float
-
property
thisown
¶ The membership flag
-
class
Extrema_PCFOfEPCOfELPCOfLocateExtPC
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor3d_Curve
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_PCFOfEPCOfELPCOfLocateExtPC2d
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor2d_Curve2d
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt2d
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_PCFOfEPCOfExtPC
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor3d_Curve
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_PCFOfEPCOfExtPC2d
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor2d_Curve2d
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt2d
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_PCLocFOfLocEPCOfLocateExtPC
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt :param C: :type C: Adaptor3d_Curve :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor3d_Curve
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_PCLocFOfLocEPCOfLocateExtPC2d
(*args)¶ Bases:
OCC.Core.math.math_FunctionWithDerivative
- Return type
None:param P: :type P: gp_Pnt2d :param C: :type C: Adaptor2d_Curve2d :rtype: None
-
Initialize
()¶ - sets the field mycurve of the function.
- param C
- type C
Adaptor2d_Curve2d
- rtype
None
-
IsMin
()¶ - Shows if the Nth distance is a minimum.
- param N
- type N
int
- rtype
bool
-
NbExt
()¶ - Return the nunber of found extrema.
- rtype
int
-
Point
()¶ - Returns the Nth extremum.
- param N
- type N
int
- rtype
Extrema_POnCurv2d
-
SearchOfTolerance
()¶ - Computes a Tol value. If 1st derivative of curve |D1|<Tol, it is considered D1=0.
- rtype
float
-
SetPoint
()¶ - sets the field P of the function.
- param P
- type P
gp_Pnt2d
- rtype
None
-
SquareDistance
()¶ - Returns the Nth distance.
- param N
- type N
int
- rtype
float
-
SubIntervalInitialize
()¶ - Determines boundaries of subinterval for find of root.
- param theUfirst
- type theUfirst
float
- param theUlast
- type theUlast
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_POnCurv
(*args)¶ Bases:
object
- Creation of an indefinite point on curve.
- rtype
None* Creation of a point on curve with a parameter value on the curve and a Pnt from gp.
- param U
- type U
float
- param P
- type P
gp_Pnt
- rtype
None
-
Parameter
()¶ - Returns the parameter on the curve.
- rtype
float
-
SetValues
()¶ - sets the point and parameter values.
- param U
- type U
float
- param P
- type P
gp_Pnt
- rtype
None
-
Value
()¶ - Returns the point.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
Extrema_POnCurv2d
(*args)¶ Bases:
object
- Creation of an indefinite point on curve.
- rtype
None* Creation of a point on curve with a parameter value on the curve and a Pnt from gp.
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- rtype
None
-
Parameter
()¶ - Returns the parameter on the curve.
- rtype
float
-
SetValues
()¶ - sets the point and parameter values.
- param U
- type U
float
- param P
- type P
gp_Pnt2d
- rtype
None
-
Value
()¶ - Returns the point.
- rtype
gp_Pnt2d
-
property
thisown
¶ The membership flag
-
class
Extrema_POnSurf
(*args)¶ Bases:
object
- Creation of an indefinite point on surface.
- rtype
None* Creation of a point on surface with parameter values on the surface and a Pnt from gp.
- param U
- type U
float
- param V
- type V
float
- param P
- type P
gp_Pnt
- rtype
None
-
Parameter
()¶ - Returns the parameter values on the surface.
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
SetParameters
()¶ - Sets the params of current POnSurf instance. (e.g. to the point to be projected).
- param theU
- type theU
float
- param theV
- type theV
float
- param thePnt
- type thePnt
gp_Pnt
- rtype
None
-
Value
()¶ - Returns the 3d point.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
Extrema_POnSurfParams
(*args)¶ Bases:
OCC.Core.Extrema.Extrema_POnSurf
- empty constructor
- rtype
None* Creation of a point on surface with parameter values on the surface and a Pnt from gp.
- param theU
- type theU
float
- param theV
- type theV
float
- param thePnt
- type thePnt
gp_Pnt
- rtype
None
-
GetElementType
()¶ - Query the element type on which this point is situated.
- rtype
Extrema_ElementType
-
GetIndices
()¶ - Query the U and V indices of an element that contains this point.
- param theIndexU
- type theIndexU
int
- param theIndexV
- type theIndexV
int
- rtype
None
-
GetSqrDistance
()¶ - Query the square distance from this point to another one.
- rtype
float
-
SetElementType
()¶ - Sets the element type on which this point is situated.
- param theElementType
- type theElementType
Extrema_ElementType
- rtype
None
-
SetIndices
()¶ - Sets the U and V indices of an element that contains this point.
- param theIndexU
- type theIndexU
int
- param theIndexV
- type theIndexV
int
- rtype
None
-
SetSqrDistance
()¶ - Sets the square distance from this point to another one (e.g. to the point to be projected).
- param theSqrDistance
- type theSqrDistance
float
- rtype
None
-
property
thisown
¶ The membership flag
-
class
Extrema_SequenceOfPOnCurv
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_SequenceOfPOnCurv2d
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_SequenceOfPOnSurf
(*args)¶ Bases:
object
-
Append
()¶
-
Assign
()¶
-
ChangeFirst
()¶
-
ChangeLast
()¶
-
ChangeValue
()¶
-
Clear
()¶
-
Exchange
()¶
-
First
()¶
-
InsertAfter
()¶
-
InsertBefore
()¶
-
IsEmpty
()¶
-
Last
()¶
-
Length
()¶
-
Lower
()¶
-
Prepend
()¶
-
Remove
()¶
-
Reverse
()¶
-
Set
()¶
-
SetValue
()¶
-
Size
()¶
-
Split
()¶
-
Upper
()¶
-
Value
()¶
-
begin
()¶
-
cbegin
()¶
-
cend
()¶
-
static
delNode
()¶
-
end
()¶
-
property
thisown
¶ The membership flag
-
-
class
Extrema_UBTreeFillerOfSphere
(*args)¶ Bases:
object
-
Add
()¶
-
CheckTree
()¶
-
Fill
()¶
-
Reset
()¶
-
property
thisown
¶ The membership flag
-