OCC.Core.Bisector module

Bisector module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_bisector.html

class Bisector_Bisec(*args)

Bases: object

Return type

None

ChangeValue()
  • Returns the Curve of <self>.
    rtype

    opencascade::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>.
    param Cu1

    type Cu1

    Geom2d_Curve

    param Cu2

    type Cu2

    Geom2d_Curve

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param ajointype

    type ajointype

    GeomAbs_JoinType

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.

    param Cu

    type Cu

    Geom2d_Curve

    param Pnt

    type Pnt

    Geom2d_Point

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.

    param Pnt

    type Pnt

    Geom2d_Point

    param Cu

    type Cu

    Geom2d_Curve

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the two points <Pnt1> and <Pnt2>.

    param Pnt1

    type Pnt1

    Geom2d_Point

    param Pnt2

    type Pnt2

    Geom2d_Point

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    default value is 0.0

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None

Value()
  • Returns the Curve of <self>.
    rtype

    opencascade::handle<Geom2d_TrimmedCurve>

property thisown

The membership flag

class Bisector_BisecAna(*args)

Bases: OCC.Core.Bisector.Bisector_Curve

Return type

None

static DownCast(t)
Dump()
Parameters

Deep – default value is 0 :type Deep: int :param Offset: default value is 0 :type Offset: int :rtype: None

Geom2dCurve()
Return type

opencascade::handle<Geom2d_Curve>

Init()
Parameters

bisector

type bisector

Geom2d_TrimmedCurve

rtype

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>.
    param Cu1

    type Cu1

    Geom2d_Curve

    param Cu2

    type Cu2

    Geom2d_Curve

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param jointype

    type jointype

    GeomAbs_JoinType

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the curve <Cu1> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.

    param Cu

    type Cu

    Geom2d_Curve

    param Pnt

    type Pnt

    Geom2d_Point

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the curve <Cu> and the point <Pnt>. <oncurve> is True if the point <P> is the point <Pnt>.

    param Pnt

    type Pnt

    Geom2d_Point

    param Cu

    type Cu

    Geom2d_Curve

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    None* Performs the bisecting line between the two points <Pnt1> and <Pnt2>.

    param Pnt1

    type Pnt1

    Geom2d_Point

    param Pnt2

    type Pnt2

    Geom2d_Point

    param P

    type P

    gp_Pnt2d

    param V1

    type V1

    gp_Vec2d

    param V2

    type V2

    gp_Vec2d

    param Sense

    type Sense

    float

    param Tolerance

    default value is 0.0

    type Tolerance

    float

    param oncurve

    default value is Standard_True

    type oncurve

    bool

    rtype

    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>.
    param Cu

    type Cu

    Geom2d_Curve

    rtype

    None* Trim <self> by a domain defined by uf and ul

    param uf

    type uf

    float

    param ul

    type ul

    float

    rtype

    None

property thisown

The membership flag

class Bisector_BisecCC(*args)

Bases: OCC.Core.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>. :param Cu1: :type Cu1: Geom2d_Curve :param Cu2: :type Cu2: Geom2d_Curve :param Side1: :type Side1: float :param Side2: :type Side2: float :param Origin: :type Origin: gp_Pnt2d :param DistMax: default value is 500 :type DistMax: float :rtype: 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.
    rtype

    opencascade::handle<Bisector_BisecCC>

Curve()
Parameters

IndCurve

type IndCurve

int

rtype

opencascade::handle<Geom2d_Curve>

static DownCast(t)
Dump()
Parameters

Deep – default value is 0 :type Deep: int :param Offset: default value is 0 :type Offset: int :rtype: None

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>.
    param U

    type U

    float

    rtype

    float

LinkCurveBis()
  • Returns the reciproque of LinkBisCurve.
    param U

    type U

    float

    rtype

    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>.
    param Cu1

    type Cu1

    Geom2d_Curve

    param Cu2

    type Cu2

    Geom2d_Curve

    param Side1

    type Side1

    float

    param Side2

    type Side2

    float

    param Origin

    type Origin

    gp_Pnt2d

    param DistMax

    default value is 500

    type DistMax

    float

    rtype

    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.
    param U

    type U

    float

    param U1

    type U1

    float

    param U2

    type U2

    float

    param Distance

    type Distance

    float

    rtype

    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.
    param U

    type U

    float

    param U1

    type U1

    float

    param U2

    type U2

    float

    param Distance

    type Distance

    float

    rtype

    gp_Pnt2d

property thisown

The membership flag

class Bisector_BisecPC(*args)

Bases: OCC.Core.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>. :param Cu: :type Cu: Geom2d_Curve :param P: :type P: gp_Pnt2d :param Side: :type Side: float :param DistMax: default value is 500 :type DistMax: float :rtype: 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>. :param Cu: :type Cu: Geom2d_Curve :param P: :type P: gp_Pnt2d :param Side: :type Side: float :param UMin: :type UMin: float :param UMax: :type UMax: float :rtype: None

Distance()
  • Returns the distance between the point of parameter U on <self> and my point or my curve.
    param U

    type U

    float

    rtype

    float

static DownCast(t)
Dump()
Parameters

Deep – default value is 0 :type Deep: int :param Offset: default value is 0 :type Offset: int :rtype: None

IntervalContinuity()
Return type

GeomAbs_Shape

IsEmpty()
  • Returns <True> if the bisector is empty.
    rtype

    bool

LinkBisCurve()
  • Returns the parameter on the curve1 of the projection of the point of parameter U on <self>.
    param U

    type U

    float

    rtype

    float

LinkCurveBis()
  • Returns the reciproque of LinkBisCurve.
    param U

    type U

    float

    rtype

    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>.
    param Cu

    type Cu

    Geom2d_Curve

    param P

    type P

    gp_Pnt2d

    param Side

    type Side

    float

    param DistMax

    default value is 500

    type DistMax

    float

    rtype

    None

property thisown

The membership flag

class Bisector_Curve(*args, **kwargs)

Bases: OCC.Core.Geom2d.Geom2d_Curve

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

static DownCast(t)
IntervalFirst()
  • Returns the first parameter of the current interval.
    param Index

    type Index

    int

    rtype

    float

IntervalLast()
  • Returns the last parameter of the current interval.
    param Index

    type Index

    int

    rtype

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

    int

Parameter()
Parameters

P

type P

gp_Pnt2d

rtype

float

property thisown

The membership flag

class Bisector_FunctionH(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

Parameters

C2

type C2

Geom2d_Curve

param P1

type P1

gp_Pnt2d

param T1

type T1

gp_Vec2d

rtype

None

property thisown

The membership flag

class Bisector_FunctionInter(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

Return type

None:param C: :type C: Geom2d_Curve :param Bis1: :type Bis1: Bisector_Curve :param Bis2: :type Bis2: Bisector_Curve :rtype: None

Perform()
Parameters

C

type C

Geom2d_Curve

param Bis1

type Bis1

Bisector_Curve

param Bis2

type Bis2

Bisector_Curve

rtype

None

property thisown

The membership flag

class Bisector_Inter(*args)

Bases: OCC.Core.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. :param C1: :type C1: Bisector_Bisec :param D1: :type D1: IntRes2d_Domain :param C2: :type C2: Bisector_Bisec :param D2: :type D2: IntRes2d_Domain :param TolConf: :type TolConf: float :param Tol: :type Tol: float :param ComunElement: :type ComunElement: bool :rtype: 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.
    param C1

    type C1

    Bisector_Bisec

    param D1

    type D1

    IntRes2d_Domain

    param C2

    type C2

    Bisector_Bisec

    param D2

    type D2

    IntRes2d_Domain

    param TolConf

    type TolConf

    float

    param Tol

    type Tol

    float

    param ComunElement

    type ComunElement

    bool

    rtype

    None

property thisown

The membership flag

class Bisector_PointOnBis(*args)

Bases: object

Return type

None:param Param1: :type Param1: float :param Param2: :type Param2: float :param ParamBis: :type ParamBis: float :param Distance: :type Distance: float :param Point: :type Point: gp_Pnt2d :rtype: None

Distance()
Parameters

Distance

type Distance

float

rtype

None:rtype: float

Dump()
Return type

None

IsInfinite()
Parameters

Infinite

type Infinite

bool

rtype

None:rtype: bool

ParamOnBis()
Parameters

Param

type Param

float

rtype

None:rtype: float

ParamOnC1()
Parameters

Param

type Param

float

rtype

None:rtype: float

ParamOnC2()
Parameters

Param

type Param

float

rtype

None:rtype: float

Point()
Parameters

P

type P

gp_Pnt2d

rtype

None:rtype: gp_Pnt2d

property thisown

The membership flag

class Bisector_PolyBis(*args)

Bases: object

Return type

None

Append()
Parameters

Point

type Point

Bisector_PointOnBis

rtype

None

First()
Return type

Bisector_PointOnBis

Interval()
Parameters

U

type U

float

rtype

int

IsEmpty()
Return type

bool

Last()
Return type

Bisector_PointOnBis

Length()
Return type

int

Transform()
Parameters

T

type T

gp_Trsf2d

rtype

None

Value()
Parameters

Index

type Index

int

rtype

Bisector_PointOnBis

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class bisector

Bases: object

static IsConvex()
Parameters

Cu

type Cu

Geom2d_Curve

param Sign

type Sign

float

rtype

bool

property thisown

The membership flag