OCC.TopTrans module¶
This package provides algorithms to computecomplex transitions. A transition is the status ofgeometry near the boundary of a Shape. An exampleis the intersection of a curve and a surfaceenclosing a solid , the transition tells if theparts of the curve just before and just after theintersection are inside, outside or on theboundary of the solid.The difficulty with transitions arise when dealingwith trimmed geometries like edges and faces. Whenthe geometric intersections are inside the trimmedgeometry the transition is usually computed by theintersection algorithms as the trimming can besafely ignored. If the intersection falls on thetrimming boundaries one must consider theneighbouring entities. Consider as an example theintersection of a curve and a solid, if theintersection falls on an edge of the solid it doesnot falls inside the two faces adjacent to theedge, a complex transition occurs.This package provides two classes :* CurveTransition is used to compute complextransitions with an other curve.* SurfaceTransition is used to compute complextransitions in 3D space.The curves and surfaces are given by a first orsecond order approximation around the intersectionpoint. For a curve, the tangent vector or theosculating circle. For a surface the normal vectoror the osculating quadric.
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
TopTrans_Array2OfOrientation
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (TopTrans_Array2OfOrientation &) – Return type: TopTrans_Array2OfOrientation
-
Set
()¶ Parameters: Other (TopTrans_Array2OfOrientation &) – Return type: TopTrans_Array2OfOrientation
-
thisown
¶ The membership flag
-
-
class
TopTrans_CurveTransition
(*args)¶ Bases:
object
- Create an empty Curve Transition.
Return type: None -
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: Return type:
-
Reset
()¶ - Initialize a Transition with the local description of a Curve.
Parameters: Return type: - 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
TopTrans_SurfaceTransition
(*args)¶ Bases:
object
- Create an empty Surface Transition.
Return type: None -
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: Return type: - Add a plane or a cylindric face to the boundary.
Parameters: Return type:
-
static
GetAfter
()¶ Parameters: Tran (TopAbs_Orientation) – Return type: TopAbs_State
-
static
GetBefore
()¶ 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: Return type: - Initialize a Surface Transition with the local description of a straight line.
Parameters: Return type:
-
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
-
TopTrans_SurfaceTransition_GetAfter
()¶ Parameters: Tran (TopAbs_Orientation) – Return type: TopAbs_State
-
TopTrans_SurfaceTransition_GetBefore
()¶ Parameters: Tran (TopAbs_Orientation) – Return type: TopAbs_State
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases