OpenCascade.js
API ReferenceModelingDataTKBRep

TopTools

OCCT package TopTools: TopTools, TopTools_FormatVersion, TopTools_LocationSet, TopTools_ShapeMapHasher, and 1 more bound classes.

TopTools

The TopTools package provides utilities for the topological data structure.

  • ShapeMapHasher. Hash a Shape base on the TShape and the Location. The Orientation is not used.
  • OrientedShapeMapHasher. Hash a Shape base on the TShape ,the Location and the Orientation.
  • Instantiations of TCollection for Shapes : MapOfShape IndexedMapOfShape DataMapOfIntegerShape DataMapOfShapeInteger DataMapOfShapeReal Array1OfShape HArray1OfShape SequenceOfShape HSequenceOfShape ListOfShape Array1OfListShape HArray1OfListShape DataMapOfIntegerListOfShape DataMapOfShapeListOfShape DataMapOfShapeListOfInteger IndexedDataMapOfShapeShape IndexedDataMapOfShapeListOfShape DataMapOfShapeShape IndexedMapOfOrientedShape DataMapOfShapeSequenceOfShape IndexedDataMapOfShapeAddress DataMapOfOrientedShapeShape
  • LocationSet: to write sets of locations.
  • ShapeSet: to writes sets of TShapes.
    Package Methods:
    Dump: To dump the topology of a Shape.

Constructors(1)

Static methods(1)

  • Dummy(I: number): void

    This is to bypass an extraction bug. It will force the inclusion of int.hxx itself including Standard_OStream.hxx at the correct position.

    Parameters (1)
    • I

TopTools_LocationSet

The class LocationSet stores a set of location in a relocatable state.
It can be created from Locations.
It can create Locations.
It can be write and read from a stream.

Constructors(1)

Instance methods(4)

TopTools_ShapeSet

A ShapeSets contains a Shape and all its sub-shapes and locations. It can be dump, write and read.
Methods to handle the geometry can be redefined.

Constructors(1)

Instance methods(13)

  • SetFormatNb(theFormatNb: number): void

    Sets the TopTools_FormatVersion.

    Parameters (1)
    • theFormatNb
  • FormatNb(): number

    Returns the TopTools_FormatVersion.

  • Clear(): void

    Clears the content of the set. This method can be redefined.

  • Add(S: TopoDS_Shape): number

    Stores and its sub-shape. Returns the index of . The method AddGeometry is called on each sub-shape.

    Parameters (1)
    • S
  • Shape(I: number): TopoDS_Shape

    Returns the sub-shape of index .

    Parameters (1)
    • I
  • Index(S: TopoDS_Shape): number

    Returns the index of .

    Parameters (1)
    • S
  • Dumps the number of objects in me on the stream <OS>. (Number of shapes of each type).

    Parameters (1)
    • S
      Mutated in place; read the updated value from this argument after the call.
  • Stores the geometry of .

    Parameters (1)
    • S
  • Inserts the shape <S2> in the shape <S1>. This method must be redefined to use the correct builder.

    Parameters (2)
    • S1
      Mutated in place; read the updated value from this argument after the call.
    • S2
  • This method is called after each new completed shape. <T> is the type. is the shape. In this class it does nothing, but it gives the opportunity in derived classes to perform extra treatment on shapes.

    Parameters (2)
    • T
    • S
      Mutated in place; read the updated value from this argument after the call.
  • NbShapes(): number

    Returns number of shapes read from file.