OCC.Bisector module¶
- Purpose : This package provides the bisecting line between twogeometric elements.
-
class
Bisector_Bisec
(*args)¶ Bases:
object
Return type: None -
ChangeValue
()¶ - Returns the Curve of <self>.
Return type: Handle_Geom2d_TrimmedCurve
-
Perform
()¶ - Performs the bisecting line between the curves <Cu1> and <Cu2>. <oncurve> is True if the point <P> is common to <Cu1> and <Cu2>.
Parameters: Return type: - Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters: Return type: - Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters: Return type: - Performs the bisecting line between the two points <Pnt1> and <Pnt2>.
Parameters: Return type:
-
Value
()¶ - Returns the Curve of <self>.
Return type: Handle_Geom2d_TrimmedCurve
-
thisown
¶ The membership flag
-
-
class
Bisector_BisecAna
(*args)¶ Bases:
OCC.Bisector.Bisector_Curve
Return type: None -
Dump
()¶ Parameters: Return type:
-
Geom2dCurve
()¶ Return type: Handle_Geom2d_Curve
-
GetHandle
()¶
-
Perform
()¶ - Performs the bisecting line between the curves <Cu1> and <Cu2>. <oncurve> is True if the point <P> is common to <Cu1> and <Cu2>.
Parameters: Return type: - Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters: Return type: - Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters: Return type: - Performs the bisecting line between the two points <Pnt1> and <Pnt2>.
Parameters: Return type:
-
SetTrim
()¶ - Trim <self> by a domain defined by the curve <Cu>. This domain is the set of the points which are nearest from <Cu> than the extremitis of <Cu>.
Parameters: Cu (Handle_Geom2d_Curve &) – Return type: None - Trim <self> by a domain defined by uf and ul
Parameters: Return type:
-
thisown
¶ The membership flag
-
-
class
Bisector_BisecCC
(*args)¶ Bases:
OCC.Bisector.Bisector_Curve
Return type: None - Constructs the bisector between the curves <Cu1> and <Cu2>. //! <Side1> (resp <Side2>) = 1 if the bisector curve is on the left of <Cu1> (resp <Cu2>) else <Side1> (resp <Side2>) = -1. //! the Bisector is trimmed by the Point <Origin>. <DistMax> is used to trim the bisector.The distance between the points of the bisector and <Cu> is smaller than <DistMax>.
Parameters: Return type: -
ChangeGuide
()¶ - The parameter on <self> is linked to the parameter on the first curve. This method creates the same bisector where the curves are inversed.
Return type: Handle_Bisector_BisecCC
-
Curve
()¶ Parameters: IndCurve (int) – Return type: Handle_Geom2d_Curve
-
Dump
()¶ Parameters: Return type:
-
GetHandle
()¶
-
IntervalContinuity
()¶ Return type: GeomAbs_Shape
-
LinkBisCurve
()¶ - Returns the parameter on the curve1 of the projection of the point of parameter U on <self>.
Parameters: U (float) – Return type: float
-
Perform
()¶ - Computes the bisector between the curves <Cu1> and <Cu2>. //! <Side1> (resp <Side2>) = 1 if the bisector curve is on the left of <Cu1> (resp <Cu2>) else <Side1> (resp <Side2>) = -1. //! the Bisector is trimmed by the Point <Origin>. //! <DistMax> is used to trim the bisector.The distance between the points of the bisector and <Cu> is smaller than <DistMax>.
Parameters: Return type:
-
Polygon
()¶ Return type: Bisector_PolyBis
-
ValueAndDist
()¶ - Returns the point of parameter U. Computes the distance between the current point and the two curves I separate. Computes the parameters on each curve corresponding of the projection of the current point.
Parameters: - U (float) –
- U1 (float &) –
- U2 (float &) –
- Distance (float &) –
Return type:
-
ValueByInt
()¶ - Returns the point of parameter U. Computes the distance between the current point and the two curves I separate. Computes the parameters on each curve corresponding of the projection of the current point.
Parameters: - U (float) –
- U1 (float &) –
- U2 (float &) –
- Distance (float &) –
Return type:
-
thisown
¶ The membership flag
-
class
Bisector_BisecPC
(*args)¶ Bases:
OCC.Bisector.Bisector_Curve
Return type: None - Constructs the bisector between the point <P> and the curve <Cu>. <Side> = 1. if the bisector curve is on the Left of <Cu> else <Side> = -1. <DistMax> is used to trim the bisector.The distance between the points of the bisector and <Cu> is smaller than <DistMax>.
Parameters: Return type: - Constructs the bisector between the point <P> and the curve <Cu> Trimmed by <UMin> and <UMax> <Side> = 1. if the bisector curve is on the Left of <Cu> else <Side> = -1. Warning: the bisector is supposed all over defined between <UMin> and <UMax>.
Parameters: Return type: -
Distance
()¶ - Returns the distance between the point of parameter U on <self> and my point or my curve.
Parameters: U (float) – Return type: float
-
Dump
()¶ Parameters: Return type:
-
GetHandle
()¶
-
IntervalContinuity
()¶ Return type: GeomAbs_Shape
-
LinkBisCurve
()¶ - Returns the parameter on the curve1 of the projection of the point of parameter U on <self>.
Parameters: U (float) – Return type: float
-
Perform
()¶ - Construct the bisector between the point <P> and the curve <Cu>. <Side> = 1. if the bisector curve is on the Left of <Cu> else <Side> = -1. <DistMax> is used to trim the bisector.The distance between the points of the bisector and <Cu> is smaller than <DistMax>.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
Bisector_Curve
(*args, **kwargs)¶ Bases:
OCC.Geom2d.Geom2d_Curve
-
GetHandle
()¶
-
IntervalFirst
()¶ - Returns the first parameter of the current interval.
Parameters: Index (int) – Return type: float
-
IntervalLast
()¶ - Returns the last parameter of the current interval.
Parameters: Index (int) – Return type: float
-
NbIntervals
()¶ - If necessary, breaks the curve in intervals of continuity <C1>. And returns the number of intervals.
Return type: int
-
thisown
¶ The membership flag
-
-
class
Bisector_FunctionH
(*args)¶ Bases:
OCC.math.math_FunctionWithDerivative
Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
Bisector_FunctionInter
(*args)¶ Bases:
OCC.math.math_FunctionWithDerivative
Return type: Parameters: - C (Handle_Geom2d_Curve &) –
- Bis1 (Handle_Bisector_Curve &) –
- Bis2 (Handle_Bisector_Curve &) –
Return type: -
Perform
()¶ Parameters: - C (Handle_Geom2d_Curve &) –
- Bis1 (Handle_Bisector_Curve &) –
- Bis2 (Handle_Bisector_Curve &) –
Return type:
-
thisown
¶ The membership flag
-
class
Bisector_Inter
(*args)¶ Bases:
OCC.IntRes2d.IntRes2d_Intersection
Return type: None - Intersection between 2 curves. C1 separates the element A and B. C2 separates the elements C et D. If B an C have the same geometry. <ComunElement> Has to be True. It Permits an optimiztion of the computation.
Parameters: Return type: -
Perform
()¶ - Intersection between 2 curves. C1 separates the element A and B. C2 separates the elements C et D. If B an C have the same geometry. <ComunElement> Has to be True. It Permits an optimiztion of the computation.
Parameters: Return type:
-
thisown
¶ The membership flag
-
class
Bisector_PointOnBis
(*args)¶ Bases:
object
Return type: Parameters: Return type: -
thisown
¶ The membership flag
-
-
class
Bisector_PolyBis
(*args)¶ Bases:
object
Return type: None -
First
()¶ Return type: Bisector_PointOnBis
-
Last
()¶ Return type: Bisector_PointOnBis
-
Value
()¶ Parameters: Index (int) – Return type: Bisector_PointOnBis
-
thisown
¶ The membership flag
-
-
class
Handle_Bisector_BisecAna
(*args)¶ Bases:
OCC.Bisector.Handle_Bisector_Curve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Bisector_BisecCC
(*args)¶ Bases:
OCC.Bisector.Handle_Bisector_Curve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Bisector_BisecPC
(*args)¶ Bases:
OCC.Bisector.Handle_Bisector_Curve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_Bisector_Curve
(*args)¶ Bases:
OCC.Geom2d.Handle_Geom2d_Curve
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases