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
TCollectionfor 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.hxxat the correct position.Parameters (1)I
TopTools_FormatVersion
Properties(4)
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)
Returns an empty set of locations.
Instance methods(4)
- Clear(): void
Clears the content of the set.
- Add(L: TopLoc_Location): number
Incorporate a new Location in the set and returns its index.
Parameters (1)L
- Location(I: number): TopLoc_Location
Returns the location of index .
Parameters (1)I
- Index(L: TopLoc_Location): number
Returns the index of <L>.
Parameters (1)L
TopTools_ShapeMapHasher
Hash tool, used for generating maps of shapes in topology.
Constructors(1)
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)
Builds an empty ShapeSet.
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
- DumpExtent(S: TCollection_AsciiString): void
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.
- AddGeometry(S: TopoDS_Shape): void
Stores the geometry of .
Parameters (1)S
- AddShapes(S1: TopoDS_Shape, S2: TopoDS_Shape): void
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
- Check(T: TopAbs_ShapeEnum, S: TopoDS_Shape): void
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)TS—Mutated in place; read the updated value from this argument after the call.
- NbShapes(): number
Returns number of shapes read from file.