OCC.TopTrans module

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

Bases: object

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

The membership flag

value()
class OCC.TopTrans.TopTrans_Array2OfOrientation(*args)

Bases: object

Assign()
Parameters:Other (TopTrans_Array2OfOrientation &) –
Return type:TopTrans_Array2OfOrientation
ChangeValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

TopAbs_Orientation

ColLength()
Return type:int
Destroy()
Return type:None
Init()
Parameters:V (TopAbs_Orientation &) –
Return type:None
LowerCol()
Return type:int
LowerRow()
Return type:int
RowLength()
Return type:int
Set()
Parameters:Other (TopTrans_Array2OfOrientation &) –
Return type:TopTrans_Array2OfOrientation
SetValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Value (TopAbs_Orientation &) –
Return type:

None

UpperCol()
Return type:int
UpperRow()
Return type:int
Value()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

TopAbs_Orientation

thisown

The membership flag

class OCC.TopTrans.TopTrans_CurveTransition

Bases: object

Compare()
  • Add a curve element to the boundary. If Or is REVERSED the curve is before the intersection, else if Or is FORWARD the curv is after the intersection and if Or is INTERNAL the intersection is in the middle of the curv.
Parameters:
  • Tole (float) –
  • Tang (gp_Dir) –
  • Norm (gp_Dir) –
  • Curv (float) –
  • S (TopAbs_Orientation) –
  • Or (TopAbs_Orientation) –
Return type:

None

Reset()
  • Initialize a Transition with the local description of a Curve.
Parameters:
  • Tgt (gp_Dir) –
  • Norm (gp_Dir) –
  • Curv (float) –
Return type:

None

  • Initialize a Transition with the local description of a straigth line.
Parameters:Tgt (gp_Dir) –
Return type:None
StateAfter()
  • returns the state of the curve after the intersection, this is the position relative to the boundary of a point very close to the intersection on the positive side of the tangent.
Return type:TopAbs_State
StateBefore()
  • returns the state of the curve before the intersection, this is the position relative to the boundary of a point very close to the intersection on the negative side of the tangent.
Return type:TopAbs_State
thisown

The membership flag

class OCC.TopTrans.TopTrans_SurfaceTransition

Bases: object

Compare()
  • Add a face element to the boundary. - S defines topological orientation for the face : S FORWARD means: along the intersection curve on the reference surface, transition states while crossing the face are OUT,IN. S REVERSED means states are IN,OUT. S INTERNAL means states are IN,IN. - O defines curve’s position on face : O FORWARD means the face is before the intersection O REVERSED means the face is AFTER O INTERNAL means the curve intersection is in the face. PREQUESITORY : Norm oriented OUTSIDE ‘geometric matter’
Parameters:
  • Tole (float) –
  • Norm (gp_Dir) –
  • MaxD (gp_Dir) –
  • MinD (gp_Dir) –
  • MaxCurv (float) –
  • MinCurv (float) –
  • S (TopAbs_Orientation) –
  • O (TopAbs_Orientation) –
Return type:

None

  • Add a plane or a cylindric face to the boundary.
Parameters:
  • Tole (float) –
  • Norm (gp_Dir) –
  • S (TopAbs_Orientation) –
  • O (TopAbs_Orientation) –
Return type:

None

static GetAfter(*args)
Parameters:Tran (TopAbs_Orientation) –
Return type:TopAbs_State
static GetBefore(*args)
Parameters:Tran (TopAbs_Orientation) –
Return type:TopAbs_State
Reset()
  • Initialize a Surface Transition with the local description of the intersection curve and of the reference surface. PREQUESITORY : Norm oriented OUTSIDE ‘geometric matter’
Parameters:
  • Tgt (gp_Dir) –
  • Norm (gp_Dir) –
  • MaxD (gp_Dir) –
  • MinD (gp_Dir) –
  • MaxCurv (float) –
  • MinCurv (float) –
Return type:

None

  • Initialize a Surface Transition with the local description of a straight line.
Parameters:
  • Tgt (gp_Dir) –
  • Norm (gp_Dir) –
Return type:

None

StateAfter()
  • Returns the state of the reference surface after interference, this is the position relative to the surface of a point very close to the intersection on the positive side of the tangent.
Return type:TopAbs_State
StateBefore()
  • Returns the state of the reference surface before the interference, this is the position relative to the surface of a point very close to the intersection on the negative side of the tangent.
Return type:TopAbs_State
thisown

The membership flag

OCC.TopTrans.TopTrans_SurfaceTransition_GetAfter(*args)
Parameters:Tran (TopAbs_Orientation) –
Return type:TopAbs_State
OCC.TopTrans.TopTrans_SurfaceTransition_GetBefore(*args)
Parameters:Tran (TopAbs_Orientation) –
Return type:TopAbs_State