OCC.TopAbs module¶
applications such as : Topological Data Structure,Topological Algorithms.It contains :* The ShapeEnum enumeration to describe thedifferents topological shapes.* The Orientation enumeration to describe theorientation of a topological shape.* The State enumeration to describes theposition of a point relative to a Shape.* Methods to manage the enumerations.-Level : Public.All methods of all classes will be public.
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
topabs
¶ Bases:
object
-
static
Complement
()¶ - Reverses the interior/exterior status of each side of the object. So, to take the complement of an object means to reverse the interior/exterior status of its boundary, i.e. inside becomes outside. The method returns the complementary orientation, following the rules in the table below: FORWARD REVERSED REVERSED FORWARD INTERNAL EXTERNAL EXTERNAL INTERNAL //! Complement complements the material side. Inside becomes outside.
Parameters: Or (TopAbs_Orientation) – Return type: TopAbs_Orientation
-
static
Compose
()¶ - Compose the Orientation <Or1> and <Or2>. This composition is not symmetric (if you switch <Or1> and <Or2> the result is different). It assumes that <Or1> is the Orientation of a Shape S1 containing a Shape S2 of Orientation Or2. The result is the cumulated orientation of S2 in S1. The composition law is : //! Or2 FORWARD REVERSED INTERNAL EXTERNAL Or1 ————————————- FORWARD | FORWARD REVERSED INTERNAL EXTERNAL | REVERSED | REVERSED FORWARD INTERNAL EXTERNAL | INTERNAL | INTERNAL INTERNAL INTERNAL INTERNAL | EXTERNAL | EXTERNAL EXTERNAL EXTERNAL EXTERNAL Note: The top corner in the table is the most important for the purposes of Open CASCADE topology and shape sharing.
Parameters: - Or1 (TopAbs_Orientation) –
- Or2 (TopAbs_Orientation) –
Return type: TopAbs_Orientation
-
static
Print
()¶ - Prints the name of Shape <SEq> as a String on the Stream <S> and returns <S>.
Parameters: - SE (TopAbs_ShapeEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the Orientation <Or> as a String on the Stream <S> and returns <S>.
Parameters: - Or (TopAbs_Orientation) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the State <St> as a String on the Stream <S> and returns <S>.
Parameters: - St (TopAbs_State) –
- S (Standard_OStream &) –
Return type: Standard_OStream
-
static
Reverse
()¶ - xchanges the interior/exterior status of the two sides. This is what happens when the sense of direction is reversed. The following rules apply: //! FORWARD REVERSED REVERSED FORWARD INTERNAL INTERNAL EXTERNAL EXTERNAL //! Reverse exchange the material sides.
Parameters: Or (TopAbs_Orientation) – Return type: TopAbs_Orientation
-
thisown
¶ The membership flag
-
static
-
topabs_Complement
()¶ - Reverses the interior/exterior status of each side of the object. So, to take the complement of an object means to reverse the interior/exterior status of its boundary, i.e. inside becomes outside. The method returns the complementary orientation, following the rules in the table below: FORWARD REVERSED REVERSED FORWARD INTERNAL EXTERNAL EXTERNAL INTERNAL //! Complement complements the material side. Inside becomes outside.
Parameters: Or (TopAbs_Orientation) – Return type: TopAbs_Orientation
-
topabs_Compose
()¶ - Compose the Orientation <Or1> and <Or2>. This composition is not symmetric (if you switch <Or1> and <Or2> the result is different). It assumes that <Or1> is the Orientation of a Shape S1 containing a Shape S2 of Orientation Or2. The result is the cumulated orientation of S2 in S1. The composition law is : //! Or2 FORWARD REVERSED INTERNAL EXTERNAL Or1 ————————————- FORWARD | FORWARD REVERSED INTERNAL EXTERNAL | REVERSED | REVERSED FORWARD INTERNAL EXTERNAL | INTERNAL | INTERNAL INTERNAL INTERNAL INTERNAL | EXTERNAL | EXTERNAL EXTERNAL EXTERNAL EXTERNAL Note: The top corner in the table is the most important for the purposes of Open CASCADE topology and shape sharing.
Parameters: - Or1 (TopAbs_Orientation) –
- Or2 (TopAbs_Orientation) –
Return type: TopAbs_Orientation
-
topabs_Print
()¶ - Prints the name of Shape <SEq> as a String on the Stream <S> and returns <S>.
Parameters: - SE (TopAbs_ShapeEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the Orientation <Or> as a String on the Stream <S> and returns <S>.
Parameters: - Or (TopAbs_Orientation) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the State <St> as a String on the Stream <S> and returns <S>.
Parameters: - St (TopAbs_State) –
- S (Standard_OStream &) –
Return type: Standard_OStream
-
topabs_Reverse
()¶ - xchanges the interior/exterior status of the two sides. This is what happens when the sense of direction is reversed. The following rules apply: //! FORWARD REVERSED REVERSED FORWARD INTERNAL INTERNAL EXTERNAL EXTERNAL //! Reverse exchange the material sides.
Parameters: Or (TopAbs_Orientation) – Return type: TopAbs_Orientation