OCC.Bisector module

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:
  • Cu1 (Handle_Geom2d_Curve &) –
  • Cu2 (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters:
  • Cu (Handle_Geom2d_Curve &) –
  • Pnt (Handle_Geom2d_Point &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters:
  • Pnt (Handle_Geom2d_Point &) –
  • Cu (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the two points <Pnt1> and <Pnt2>.
Parameters:
  • Pnt1 (Handle_Geom2d_Point &) –
  • Pnt2 (Handle_Geom2d_Point &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) – default value is 0.0
  • oncurve (bool) – default value is Standard_True
Return type:

None

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:
  • Deep (int) – default value is 0
  • Offset (int) – default value is 0
Return type:

None

Geom2dCurve()
Return type:Handle_Geom2d_Curve
GetHandle()
Init()
Parameters:bisector (Handle_Geom2d_TrimmedCurve &) –
Return type:None
ParameterOfEndPoint()
Return type:float
ParameterOfStartPoint()
Return type:float
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:
  • Cu1 (Handle_Geom2d_Curve &) –
  • Cu2 (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters:
  • Cu (Handle_Geom2d_Curve &) –
  • Pnt (Handle_Geom2d_Point &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.
Parameters:
  • Pnt (Handle_Geom2d_Point &) –
  • Cu (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) –
  • oncurve (bool) – default value is Standard_True
Return type:

None

  • Performs the bisecting line between the two points <Pnt1> and <Pnt2>.
Parameters:
  • Pnt1 (Handle_Geom2d_Point &) –
  • Pnt2 (Handle_Geom2d_Point &) –
  • P (gp_Pnt2d) –
  • V1 (gp_Vec2d) –
  • V2 (gp_Vec2d) –
  • Sense (float) –
  • Tolerance (float) – default value is 0.0
  • oncurve (bool) – default value is Standard_True
Return type:

None

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:

None

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:
  • Cu1 (Handle_Geom2d_Curve &) –
  • Cu2 (Handle_Geom2d_Curve &) –
  • Side1 (float) –
  • Side2 (float) –
  • Origin (gp_Pnt2d) –
  • DistMax (float) – default value is 500
Return type:

None

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:
  • Deep (int) – default value is 0
  • Offset (int) – default value is 0
Return type:

None

GetHandle()
IntervalContinuity()
Return type:GeomAbs_Shape
IsEmpty()
Return type:bool
LinkBisCurve()
  • Returns the parameter on the curve1 of the projection of the point of parameter U on <self>.
Parameters:U (float) –
Return type:float
LinkCurveBis()
  • Returns the reciproque of LinkBisCurve.
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:
  • Cu1 (Handle_Geom2d_Curve &) –
  • Cu2 (Handle_Geom2d_Curve &) –
  • Side1 (float) –
  • Side2 (float) –
  • Origin (gp_Pnt2d) –
  • DistMax (float) – default value is 500
Return type:

None

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:

gp_Pnt2d

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:

gp_Pnt2d

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:
  • Cu (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • Side (float) –
  • DistMax (float) – default value is 500
Return type:

None

  • 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:

None

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:
  • Deep (int) – default value is 0
  • Offset (int) – default value is 0
Return type:

None

GetHandle()
IntervalContinuity()
Return type:GeomAbs_Shape
IsEmpty()
  • Returns <True> if the bisector is empty.
Return type:bool
LinkBisCurve()
  • Returns the parameter on the curve1 of the projection of the point of parameter U on <self>.
Parameters:U (float) –
Return type:float
LinkCurveBis()
  • Returns the reciproque of LinkBisCurve.
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:
  • Cu (Handle_Geom2d_Curve &) –
  • P (gp_Pnt2d) –
  • Side (float) –
  • DistMax (float) – default value is 500
Return type:

None

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
IsExtendAtEnd()
Return type:bool
IsExtendAtStart()
Return type:bool
NbIntervals()
  • If necessary, breaks the curve in intervals of continuity <C1>. And returns the number of intervals.
Return type:int
Parameter()
Parameters:P (gp_Pnt2d) –
Return type:float
thisown

The membership flag

class Bisector_FunctionH(*args)

Bases: OCC.math.math_FunctionWithDerivative

Parameters:
Return type:

None

thisown

The membership flag

class Bisector_FunctionInter(*args)

Bases: OCC.math.math_FunctionWithDerivative

Return type:

None

Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Bis1 (Handle_Bisector_Curve &) –
  • Bis2 (Handle_Bisector_Curve &) –
Return type:

None

Perform()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • Bis1 (Handle_Bisector_Curve &) –
  • Bis2 (Handle_Bisector_Curve &) –
Return type:

None

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:
  • C1 (Bisector_Bisec &) –
  • D1 (IntRes2d_Domain &) –
  • C2 (Bisector_Bisec &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • ComunElement (bool) –
Return type:

None

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:
  • C1 (Bisector_Bisec &) –
  • D1 (IntRes2d_Domain &) –
  • C2 (Bisector_Bisec &) –
  • D2 (IntRes2d_Domain &) –
  • TolConf (float) –
  • Tol (float) –
  • ComunElement (bool) –
Return type:

None

thisown

The membership flag

class Bisector_PointOnBis(*args)

Bases: object

Return type:

None

Parameters:
Return type:

None

Distance()
Parameters:Distance (float) –
Return type:None
Return type:float
Dump()
Return type:None
IsInfinite()
Parameters:Infinite (bool) –
Return type:None
Return type:bool
ParamOnBis()
Parameters:Param (float) –
Return type:None
Return type:float
ParamOnC1()
Parameters:Param (float) –
Return type:None
Return type:float
ParamOnC2()
Parameters:Param (float) –
Return type:None
Return type:float
Point()
Parameters:P (gp_Pnt2d) –
Return type:None
Return type:gp_Pnt2d
thisown

The membership flag

class Bisector_PolyBis(*args)

Bases: object

Return type:None
Append()
Parameters:Point (Bisector_PointOnBis &) –
Return type:None
First()
Return type:Bisector_PointOnBis
Interval()
Parameters:U (float) –
Return type:int
IsEmpty()
Return type:bool
Last()
Return type:Bisector_PointOnBis
Length()
Return type:int
Transform()
Parameters:T (gp_Trsf2d) –
Return type:None
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

class Handle_Bisector_BisecCC(*args)

Bases: OCC.Bisector.Handle_Bisector_Curve

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Bisector_BisecPC(*args)

Bases: OCC.Bisector.Handle_Bisector_Curve

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_Bisector_Curve(*args)

Bases: OCC.Geom2d.Handle_Geom2d_Curve

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class bisector

Bases: object

static IsConvex(*args)
Parameters:
  • Cu (Handle_Geom2d_Curve &) –
  • Sign (float) –
Return type:

bool

thisown

The membership flag

bisector_IsConvex(*args)
Parameters:
  • Cu (Handle_Geom2d_Curve &) –
  • Sign (float) –
Return type:

bool

register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases