OCC.Bisector module

class OCC.Bisector.Bisector_Bisec

Bases: object

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

  • 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

  • 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 OCC.Bisector.Bisector_BisecAna

Bases: OCC.Bisector.Bisector_Curve

Dump()
Parameters:
  • Deep (Standard_Integer) – default value is 0
  • Offset (Standard_Integer) – default value is 0
  • Deep – default value is 0
  • Offset – default value is 0
  • Deep – default value is 0
  • Offset – default value is 0
Return type:

None

Return type:

None

Return type:

None

Geom2dCurve()
Return type:Handle_Geom2d_Curve
GetHandle()

Bisector_BisecAna_GetHandle(Bisector_BisecAna self) -> Handle_Bisector_BisecAna

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

  • 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

  • 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:
  • uf (float) –
  • ul (float) –
Return type:

None

thisown

The membership flag

class OCC.Bisector.Bisector_BisecCC(*args)

Bases: OCC.Bisector.Bisector_Curve

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

None

Return type:

None

Return type:

None

GetHandle()

Bisector_BisecCC_GetHandle(Bisector_BisecCC self) -> Handle_Bisector_BisecCC

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

  • 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 OCC.Bisector.Bisector_BisecPC(*args)

Bases: OCC.Bisector.Bisector_Curve

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

None

Return type:

None

Return type:

None

GetHandle()

Bisector_BisecPC_GetHandle(Bisector_BisecPC self) -> Handle_Bisector_BisecPC

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

  • 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 OCC.Bisector.Bisector_Curve(*args, **kwargs)

Bases: OCC.Geom2d.Geom2d_Curve

GetHandle()

Bisector_Curve_GetHandle(Bisector_Curve self) -> Handle_Bisector_Curve

IntervalFirst()
  • Returns the first parameter of the current interval.
Parameters:Index (Standard_Integer) –
Return type:float
IntervalLast()
  • Returns the last parameter of the current interval.
Parameters:Index (Standard_Integer) –
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 OCC.Bisector.Bisector_FunctionH(*args)

Bases: object

Derivative()
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

Value()
  • Computes the values of the Functions for the variable <X>.
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
  • Returns the values of the functions and the derivatives for the variable <X>.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Bisector.Bisector_FunctionInter(*args)

Bases: object

Derivative()
Parameters:
  • X (float) –
  • D (float &) –
Return type:

bool

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

None

Value()
  • Computes the values of the Functions for the variable <X>.
Parameters:
  • X (float) –
  • F (float &) –
Return type:

bool

Values()
  • Returns the values of the functions and the derivatives for the variable <X>.
Parameters:
  • X (float) –
  • F (float &) –
  • D (float &) –
Return type:

bool

thisown

The membership flag

class OCC.Bisector.Bisector_Inter(*args)

Bases: OCC.IntRes2d.IntRes2d_Intersection

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 OCC.Bisector.Bisector_PointOnBis(*args)

Bases: object

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 OCC.Bisector.Bisector_PolyBis

Bases: object

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 (Standard_Integer) –
Return type:Bisector_PointOnBis
thisown

The membership flag

class OCC.Bisector.Handle_Bisector_BisecAna(*args)

Bases: OCC.Bisector.Handle_Bisector_Curve

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

The membership flag

class OCC.Bisector.Handle_Bisector_BisecCC(*args)

Bases: OCC.Bisector.Handle_Bisector_Curve

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

The membership flag

class OCC.Bisector.Handle_Bisector_BisecPC(*args)

Bases: OCC.Bisector.Handle_Bisector_Curve

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

The membership flag

class OCC.Bisector.Handle_Bisector_Curve(*args)

Bases: OCC.Geom2d.Handle_Geom2d_Curve

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

The membership flag

class OCC.Bisector.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class OCC.Bisector.bisector(*args, **kwargs)

Bases: object

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

bool

thisown

The membership flag

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

bool