TopAbs
OCCT package TopAbs: TopAbs, TopAbs_Orientation, TopAbs_ShapeEnum, TopAbs_State.
TopAbs
This package gives resources for Topology oriented applications such as: Topological Data Structure, Topological Algorithms.
It contains the:
- ShapeEnum enumeration to describe the different topological shapes.
- Orientation enumeration to describe the orientation of a topological shape.
- State enumeration to describes the position of a point relative to a Shape.
- Methods to manage the enumerations.
Constructors(1)
Static methods(7)
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 (1)Or
- ShapeTypeToString(theType: TopAbs_ShapeEnum): string
Returns the string name for a given shape type.
Parameters (1)theType—shape type
Returnsstring identifier from the list COMPOUND, COMPSOLID, SOLID, SHELL, FACE, WIRE, EDGE, VERTEX, SHAPE
- ShapeTypeFromString(theTypeString: string): TopAbs_ShapeEnum
Returns the shape type from the given string identifier (using case-insensitive comparison).
Parameters (1)theTypeString—string identifier
Returnsshape type or TopAbs_SHAPE if string identifier is invalid
- ShapeTypeFromString(theTypeString: string, theType: TopAbs_ShapeEnum): { returnValue: boolean; theType: TopAbs_ShapeEnum }
Determines the shape type from the given string identifier (using case-insensitive comparison).
Parameters (2)theTypeString—string identifiertheType—detected shape type
ReturnsA result object with fields:
returnValue: TRUE if string identifier is knowntheType: detected shape type
- ShapeOrientationToString(theOrientation: TopAbs_Orientation): string
Returns the string name for a given shape orientation.
Parameters (1)theOrientation—shape orientation
Returnsstring identifier from the list FORWARD, REVERSED, INTERNAL, EXTERNAL
- ShapeOrientationFromString(theOrientationString: string): TopAbs_Orientation
Returns the shape orientation from the given string identifier (using case-insensitive comparison).
Parameters (1)theOrientationString—string identifier
Returnsshape orientation or TopAbs_FORWARD if string identifier is invalid
- ShapeOrientationFromString(theOrientationString: string, theOrientation: TopAbs_Orientation): { returnValue: boolean; theOrientation: TopAbs_Orientation }
Determines the shape orientation from the given string identifier (using case-insensitive comparison).
Parameters (2)theOrientationString—string identifiertheOrientation—detected shape orientation
ReturnsA result object with fields:
returnValue: TRUE if string identifier is knowntheOrientation: detected shape orientation