OpenCascade.js
API ReferenceModelingDataTKG3d

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
  • Returns the string name for a given shape type.

    Parameters (1)
    • theType
      shape type
    Returns

    string 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
    Returns

    shape 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 identifier
    • theType
      detected shape type
    Returns

    A result object with fields:

    • returnValue: TRUE if string identifier is known
    • theType: detected shape type
  • Returns the string name for a given shape orientation.

    Parameters (1)
    • theOrientation
      shape orientation
    Returns

    string 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
    Returns

    shape 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 identifier
    • theOrientation
      detected shape orientation
    Returns

    A result object with fields:

    • returnValue: TRUE if string identifier is known
    • theOrientation: detected shape orientation