OCC.Core.TopAbs module¶
TopAbs module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_topabs.html
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
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.
- param Or
- type Or
TopAbs_Orientation
- rtype
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.
- param Or1
- type Or1
TopAbs_Orientation
- param Or2
- type Or2
TopAbs_Orientation
- rtype
TopAbs_Orientation
-
static
Print
()¶ - Prints the name of Shape type as a String on the Stream.
- param theShapeType
- type theShapeType
TopAbs_ShapeEnum
- param theStream
- type theStream
Standard_OStream
- rtype
Standard_OStream* Prints the name of the Orientation as a String on the Stream.
- param theOrientation
- type theOrientation
TopAbs_Orientation
- param theStream
- type theStream
Standard_OStream
- rtype
Standard_OStream* Prints the name of the State <St> as a String on the Stream <S> and returns <S>.
- param St
- type St
TopAbs_State
- param S
- type S
Standard_OStream
- rtype
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.
- param Or
- type Or
TopAbs_Orientation
- rtype
TopAbs_Orientation
-
static
ShapeOrientationFromString
()¶ - Returns the shape orientation from the given string identifier (using case-insensitive comparison). @param theOrientationString string identifier returns shape orientation or TopAbs_FORWARD if string identifier is invalid
- param theOrientationString
- type theOrientationString
char *
- rtype
TopAbs_Orientation* Determines the shape orientation from the given string identifier (using case-insensitive comparison). @param theOrientationString string identifier @param theOrientation detected shape orientation returns True if string identifier is known
- param theOrientationString
- type theOrientationString
char *
- param theOrientation
- type theOrientation
TopAbs_Orientation
- rtype
bool
-
static
ShapeOrientationToString
()¶ - Returns the string name for a given shape orientation. @param theOrientation shape orientation returns string identifier from the list FORWARD, REVERSED, INTERNAL, EXTERNAL
- param theOrientation
- type theOrientation
TopAbs_Orientation
- rtype
char *
-
static
ShapeTypeFromString
()¶ - Returns the shape type from the given string identifier (using case-insensitive comparison). @param theTypeString string identifier returns shape type or TopAbs_SHAPE if string identifier is invalid
- param theTypeString
- type theTypeString
char *
- rtype
TopAbs_ShapeEnum* Determines the shape type from the given string identifier (using case-insensitive comparison). @param theTypeString string identifier @param theType detected shape type returns True if string identifier is known
- param theTypeString
- type theTypeString
char *
- param theType
- type theType
TopAbs_ShapeEnum
- rtype
bool
-
static
ShapeTypeToString
()¶ - Returns the string name for a given shape type. @param theType shape type returns string identifier from the list COMPOUND, COMPSOLID, SOLID, SHELL, FACE, WIRE, EDGE, VERTEX, SHAPE
- param theType
- type theType
TopAbs_ShapeEnum
- rtype
char *
-
property
thisown
¶ The membership flag
-
static