TopoDS
OCCT package TopoDS: TopoDS_AlertAttribute, TopoDS_AlertWithShape, TopoDS_Builder, TopoDS_Compound, and 22 more bound classes.
TopoDS_AlertAttribute
Alert attribute object storing TopoDS shape in its field.
Constructors(1)
- constructor(theShape: TopoDS_Shape, theName?: TCollection_AsciiString): TopoDS_AlertAttribute
Constructor with shape argument.
Parameters (2)theShapetheName
Static methods(1)
Instance methods(2)
Returns contained shape.
TopoDS_AlertWithShape
Alert object storing TopoDS shape in its field.
Constructors(1)
- constructor(theShape: TopoDS_Shape): TopoDS_AlertWithShape
Constructor with shape argument.
Parameters (1)theShape
Static methods(2)
- get_type_name(): string
Instance methods(5)
Returns contained shape.
- SetShape(theShape: TopoDS_Shape): void
Sets the shape.
Parameters (1)theShape
- SupportsMerge(): boolean
Returns false.
- Merge(theTarget: Message_Alert): boolean
Returns false.
Parameters (1)theTarget
TopoDS_Builder
A Builder is used to create Topological Data Structures. It is the root of the Builder class hierarchy.
There are three groups of methods in the Builder:
The Make methods create Shapes.
The Add method includes a Shape in another Shape.
The Remove method removes a Shape from an other Shape.
The methods in Builder are not static. They can be redefined in inherited builders.
This Builder does not provide methods to Make Vertices, Edges, Faces, Shells or Solids. These methods are provided in the inherited Builders as they must provide the geometry.
The Add method check for the following rules:
- Any SHAPE can be added in a COMPOUND.
- Only SOLID can be added in a COMPSOLID.
- Only SHELL, EDGE and VERTEX can be added in a SOLID. EDGE and VERTEX as to be INTERNAL or EXTERNAL.
- Only FACE can be added in a SHELL.
- Only WIRE and VERTEX can be added in a FACE. VERTEX as to be INTERNAL or EXTERNAL.
- Only EDGE can be added in a WIRE.
- Only VERTEX can be added in an EDGE.
- Nothing can be added in a VERTEX.
Constructors(1)
Instance methods(7)
- MakeWire(W: TopoDS_Wire): void
Make an empty Wire.
Parameters (1)W—Mutated in place; read the updated value from this argument after the call.
- MakeShell(S: TopoDS_Shell): void
Make an empty Shell.
Parameters (1)S—Mutated in place; read the updated value from this argument after the call.
- MakeSolid(S: TopoDS_Solid): void
Make a Solid covering the whole 3D space.
Parameters (1)S—Mutated in place; read the updated value from this argument after the call.
- MakeCompSolid(C: TopoDS_CompSolid): void
Make an empty Composite Solid.
Parameters (1)C—Mutated in place; read the updated value from this argument after the call.
- MakeCompound(C: TopoDS_Compound): void
Make an empty Compound.
Parameters (1)C—Mutated in place; read the updated value from this argument after the call.
- Add(S: TopoDS_Shape, C: TopoDS_Shape): void
Add the Shape C in the Shape S. Exceptions.
- TopoDS_FrozenShape if S is not free and cannot be modified.
- TopoDS__UnCompatibleShapes if S and C are not compatible.
Parameters (2)S—Mutated in place; read the updated value from this argument after the call.C
- Remove(S: TopoDS_Shape, C: TopoDS_Shape): void
Remove the Shape C from the Shape S. Exceptions TopoDS_FrozenShape if S is frozen and cannot be modified.
Parameters (2)S—Mutated in place; read the updated value from this argument after the call.C
TopoDS_Compound
Describes a compound which.
- references an underlying compound with the potential to be given a location and an orientation
- has a location for the underlying compound, giving its placement in the local coordinate system
- has an orientation for the underlying compound, in terms of its geometry (as opposed to orientation in relation to other shapes). Casts shape S to the more specialized return type, Compound.
Constructors(1)
Constructs an Undefined Compound.
TopoDS_CompSolid
Describes a composite solid which.
- references an underlying composite solid with the potential to be given a location and an orientation
- has a location for the underlying composite solid, giving its placement in the local coordinate system
- has an orientation for the underlying composite solid, in terms of its geometry (as opposed to orientation in relation to other shapes). Casts shape S to the more specialized return type, CompSolid.
Constructors(1)
Constructs an Undefined CompSolid.
TopoDS_Edge
Describes an edge which.
- references an underlying edge with the potential to be given a location and an orientation
- has a location for the underlying edge, giving its placement in the local coordinate system
- has an orientation for the underlying edge, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Undefined Edge.
TopoDS_Face
Describes a face which.
- references an underlying face with the potential to be given a location and an orientation
- has a location for the underlying face, giving its placement in the local coordinate system
- has an orientation for the underlying face, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Undefined Face.
TopoDS_FrozenShape
Constructors(2)
- constructor(theMessage: string): TopoDS_FrozenShapeParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): TopoDS_FrozenShapeParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
TopoDS_HShape
Class to manipulate a Shape with handle.
Constructors(2)
Constructs an empty shape object.
- constructor(aShape: TopoDS_Shape): TopoDS_HShape
Constructs a shape object defined by the shape aShape.
Parameters (1)aShape
Static methods(2)
- get_type_name(): string
Instance methods(4)
- Shape(aShape: TopoDS_Shape): void
Loads this shape with the shape aShape.
Parameters (1)aShape
Returns a reference to a constant
TopoDS_Shapebased on this shape.Exchanges the
TopoDS_Shapeobject defining this shape for another one referencing the same underlying shape Accesses the list of shapes within the underlying shape referenced by theTopoDS_Shapeobject. Returns a reference to aTopoDS_Shapebased on this shape. TheTopoDS_Shapecan be modified.
TopoDS_Iterator
Iterates on the underlying shape underlying a given TopoDS_Shape object, providing access to its component sub-shapes. Each component shape is returned as a TopoDS_Shape with an orientation, and a compound of the original values and the relative values.
Constructors(2)
Creates an empty
Iterator.- constructor(S: TopoDS_Shape, cumOri?: boolean, cumLoc?: boolean): TopoDS_Iterator
Creates an
Iteratoron sub-shapes. Note:- If cumOri is true, the function composes all sub-shapes with the orientation of S.
- If cumLoc is true, the function multiplies all sub-shapes by the location of S, i.e. it applies to each sub-shape the transformation that is associated with S.
Parameters (3)ScumOricumLoc
Instance methods(5)
- Initialize(S: TopoDS_Shape, cumOri?: boolean, cumLoc?: boolean): void
Initializes this iterator with shape S. Note:
- If cumOri is true, the function composes all sub-shapes with the orientation of S.
- If cumLoc is true, the function multiplies all sub-shapes by the location of S, i.e. it applies to each sub-shape the transformation that is associated with S.
Parameters (3)ScumOricumLoc
- More(): boolean
Returns true if there is another sub-shape in the shape which this iterator is scanning.
- Next(): void
Moves on to the next sub-shape in the shape which this iterator is scanning. Exceptions Standard_NoMoreObject if there are no more sub-shapes in the shape.
Returns the current sub-shape in the shape which this iterator is scanning. Exceptions Standard_NoSuchObject if there is no current sub-shape.
Returns a sentinel marking the end of iteration.
TopoDS_LockedShape
Constructors(2)
- constructor(theMessage: string): TopoDS_LockedShapeParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): TopoDS_LockedShapeParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
TopoDS_Shape
Describes a shape which.
- references an underlying shape with the potential to be given a location and an orientation
- has a location for the underlying shape, giving its placement in the local coordinate system
- has an orientation for the underlying shape, in terms of its geometry (as opposed to orientation in relation to other shapes). Note: A Shape is empty if it references an underlying shape which has an empty list of shapes.
Constructors(1)
Creates a NULL Shape referring to nothing.
Instance methods(42)
- IsNull(): boolean
Returns true if this shape is null. In other words, it references no underlying shape with the potential to be given a location and an orientation.
- Nullify(): void
Destroys the reference to the underlying shape stored in this shape. As a result, this shape becomes null.
Returns the shape local coordinate system.
- Location(theLoc: TopLoc_Location, theRaiseExc: boolean): void
Sets the shape local coordinate system.
Parameters (2)theLoc—the new local coordinate system.theRaiseExc—flag to raise exception in case of transformation with scale or negative.
- Located(theLoc: TopLoc_Location, theRaiseExc?: boolean): TopoDS_Shape
Returns a shape similar to <me> with the local coordinate system set to <Loc>.
Parameters (2)theLoc—the new local coordinate system.theRaiseExc—flag to raise exception in case of transformation with scale or negative.
Returnsthe located shape.
Returns the shape orientation.
- Orientation(theOrient: TopAbs_Orientation): void
Sets the shape orientation.
Parameters (1)theOrient
- Oriented(theOrient: TopAbs_Orientation): TopoDS_Shape
Returns a shape similar to <me> with the orientation set to <Or>.
Parameters (1)theOrient
Returns a handle to the actual shape implementation.
- TShape(theTShape: TopoDS_TShape): voidParameters (1)
theTShape
Returns the value of the
TopAbs_ShapeEnumenumeration that corresponds to this shape, for example VERTEX, EDGE, and so on. Exceptions Standard_NullObject if this shape is null.- Free(): boolean
Returns the free flag.
- Free(theIsFree: boolean): void
Sets the free flag.
Parameters (1)theIsFree
- Locked(): boolean
Returns the locked flag.
- Locked(theIsLocked: boolean): void
Sets the locked flag.
Parameters (1)theIsLocked
- Modified(): boolean
Returns the modification flag.
- Modified(theIsModified: boolean): void
Sets the modification flag.
Parameters (1)theIsModified
- Checked(): boolean
Returns the checked flag.
- Checked(theIsChecked: boolean): void
Sets the checked flag.
Parameters (1)theIsChecked
- Orientable(): boolean
Returns the orientability flag.
- Orientable(theIsOrientable: boolean): void
Sets the orientability flag.
Parameters (1)theIsOrientable
- Closed(): boolean
Returns the closedness flag.
- Closed(theIsClosed: boolean): void
Sets the closedness flag.
Parameters (1)theIsClosed
- Infinite(): boolean
Returns the infinity flag.
- Infinite(theIsInfinite: boolean): void
Sets the infinity flag.
Parameters (1)theIsInfinite
- Convex(): boolean
Returns the convexness flag.
- Convex(theIsConvex: boolean): void
Sets the convexness flag.
Parameters (1)theIsConvex
- Move(thePosition: TopLoc_Location, theRaiseExc?: boolean): void
Multiplies the Shape location by thePosition.
Parameters (2)thePosition—the transformation to apply.theRaiseExc—flag to raise exception in case of transformation with scale or negative.
- Moved(thePosition: TopLoc_Location, theRaiseExc?: boolean): TopoDS_Shape
Returns a shape similar to <me> with a location multiplied by thePosition.
Parameters (2)thePosition—the transformation to apply.theRaiseExc—flag to raise exception in case of transformation with scale or negative.
Returnsthe moved shape.
- Reverse(): void
Reverses the orientation, using the Reverse method from the
TopAbspackage. Returns a shape similar to <me> with the orientation reversed, using the Reverse method from the
TopAbspackage.- Complement(): void
Complements the orientation, using the Complement method from the
TopAbspackage. Returns a shape similar to <me> with the orientation complemented, using the Complement method from the
TopAbspackage.- Compose(theOrient: TopAbs_Orientation): void
Updates the Shape Orientation by composition with theOrient, using the Compose method from the
TopAbspackage.Parameters (1)theOrient
- Composed(theOrient: TopAbs_Orientation): TopoDS_Shape
Returns a shape similar to <me> with the orientation composed with theOrient, using the Compose method from the
TopAbspackage.Parameters (1)theOrient
- NbChildren(): number
Returns the number of direct sub-shapes (children).
See also - IsPartner(theOther: TopoDS_Shape): boolean
Returns True if two shapes are partners, i.e. if they share the same TShape. Locations and Orientations may differ.
Parameters (1)theOther
- IsSame(theOther: TopoDS_Shape): boolean
Returns True if two shapes are same, i.e. if they share the same TShape with the same Locations. Orientations may differ.
Parameters (1)theOther
- IsEqual(theOther: TopoDS_Shape): boolean
Returns True if two shapes are equal, i.e. if they share the same TShape with the same Locations and Orientations.
Parameters (1)theOther
- IsNotEqual(theOther: TopoDS_Shape): boolean
Negation of the IsEqual method.
Parameters (1)theOther
- EmptyCopy(): void
Replace <me> by a new Shape with the same Orientation and Location and a new TShape with the same geometry and no sub-shapes.
Returns a new Shape with the same Orientation and Location and a new TShape with the same geometry and no sub-shapes.
TopoDS_Shell
Describes a shell which.
- references an underlying shell with the potential to be given a location and an orientation
- has a location for the underlying shell, giving its placement in the local coordinate system
- has an orientation for the underlying shell, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Constructs an Undefined Shell.
TopoDS_Solid
Describes a solid shape which.
- references an underlying solid shape with the potential to be given a location and an orientation
- has a location for the underlying shape, giving its placement in the local coordinate system
- has an orientation for the underlying shape, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Constructs an Undefined Solid.
TopoDS_TCompound
A TCompound is an all-purpose set of Shapes.
Constructors(1)
Creates an empty TCompound.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TCompound.
TopoDS_TCompSolid
A set of solids connected by their faces.
Constructors(1)
Creates an empty TCompSolid.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TCompSolid.
TopoDS_TEdge
A topological part of a curve in 2D or 3D, the boundary is a set of oriented Vertices.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TEdge.
TopoDS_TFace
A topological part of a surface or of the 2D space. The boundary is a set of wires and vertices.
Constructors(1)
Creates an empty TFace.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TFace.
TopoDS_TShape
A TShape is a topological structure describing a set of points in a 2D or 3D space.
A topological shape is a structure made from other shapes. This is a deferred class used to support topological objects.
TShapes are defined by their optional domain (geometry) and their components (other TShapes with Locations and Orientations). The components are stored in a list in the base class.
A TShape contains the following boolean flags:
- Free : Free or Frozen.
- Modified : Has been modified.
- Checked : Has been checked.
- Orientable : Can be oriented.
- Closed : Is closed (note that only Wires and Shells may be closed).
- Infinite : Is infinite.
- Convex : Is convex.
- Locked : Is locked against modifications.
Users have no direct access to the classes derived from TShape. They handle them with the classes derived from Shape.
Static methods(2)
- get_type_name(): string
Instance methods(20)
- Free(): boolean
Returns the free flag.
- Free(theIsFree: boolean): void
Sets the free flag.
Parameters (1)theIsFree
- Locked(): boolean
Returns the locked flag.
- Locked(theIsLocked: boolean): void
Sets the locked flag.
Parameters (1)theIsLocked
- Modified(): boolean
Returns the modification flag.
- Modified(theIsModified: boolean): void
Sets the modification flag.
Parameters (1)theIsModified
- Checked(): boolean
Returns the checked flag.
- Checked(theIsChecked: boolean): void
Sets the checked flag.
Parameters (1)theIsChecked
- Orientable(): boolean
Returns the orientability flag.
- Orientable(theIsOrientable: boolean): void
Sets the orientability flag.
Parameters (1)theIsOrientable
- Closed(): boolean
Returns the closedness flag.
- Closed(theIsClosed: boolean): void
Sets the closedness flag.
Parameters (1)theIsClosed
- Infinite(): boolean
Returns the infinity flag.
- Infinite(theIsInfinite: boolean): void
Sets the infinity flag.
Parameters (1)theIsInfinite
- Convex(): boolean
Returns the convexness flag.
- Convex(theIsConvex: boolean): void
Sets the convexness flag.
Parameters (1)theIsConvex
Returns the type as a term of the ShapeEnum enum: VERTEX, EDGE, WIRE, FACE, SHELL, SOLID, COMPSOLID, COMPOUND. The type is embedded in the lower 4 bits of the state.
Returns a copy of the TShape with no sub-shapes.
- NbChildren(): number
Returns the number of direct sub-shapes (children).
See also
TopoDS_TShell
A set of faces connected by their edges.
Constructors(1)
Creates an empty TShell.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TShell.
TopoDS_TSolid
A Topological part of 3D space, bounded by shells, edges and vertices.
Constructors(1)
Creates an empty TSolid.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TSolid.
TopoDS_TVertex
A Vertex is a topological point in two or three dimensions. TVertex has no children (sub-shapes).
Static methods(2)
- get_type_name(): string
Instance methods(1)
TopoDS_TWire
A set of edges connected by their vertices.
Constructors(1)
Creates an empty TWire.
Static methods(2)
- get_type_name(): string
Instance methods(2)
Returns an empty TWire.
TopoDS_UnCompatibleShapes
Constructors(2)
- constructor(theMessage: string): TopoDS_UnCompatibleShapesParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): TopoDS_UnCompatibleShapesParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
TopoDS_Vertex
Describes a vertex which.
- references an underlying vertex with the potential to be given a location and an orientation
- has a location for the underlying vertex, giving its placement in the local coordinate system
- has an orientation for the underlying vertex, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Undefined Vertex.
TopoDS_Wire
Describes a wire which.
- references an underlying wire with the potential to be given a location and an orientation
- has a location for the underlying wire, giving its placement in the local coordinate system
- has an orientation for the underlying wire, in terms of its geometry (as opposed to orientation in relation to other shapes).
Constructors(1)
Undefined Wire.