OCC.TNaming module¶
A topological attribute can be seen as a hookinto the topological structure. To this hook,data can be attached and references defined.It is used for keeping and access totopological objects and their evolution. Alltopological objects are stored in the oneuser-protected TNaming_UsedShapesattribute at the root label of the dataframework. This attribute contains map with alltopological shapes, used in this document.To all other labels TNaming_NamedShapeattribute can be added. This attribute containsreferences (hooks) to shapes from theTNaming_UsedShapes attribute and evolutionof these shapes. TNaming_NamedShapeattribute contains a set of pairs of hooks: oldshape and new shape (see the figure below).It allows not only get the topological shapes bythe labels, but also trace evolution of theshapes and correctly resolve dependentshapes by the changed one.If shape is just-created, then the old shape foraccorded named shape is an empty shape. Ifa shape is deleted, then the new shape in this named shape is empty.Different algorithms may dispose sub-shapesof the result shape at the individual label depending on necessity:- If a sub-shape must have some extra attributes (material ofeach face or color of each edge). In this case a specific sub-shape isplaced to the separate label (usually, sub-label of the result shape label)with all attributes of this sub-shape.- If topological naming is needed, a necessary and sufficient(for selected sub-shapes identification) set of sub-shapes isplaced to the child labels of the resultshape label. As usual, as far as basic solids and closed shells areconcerned, all faces of the shape are disposed. Edges and verticessub-shapes can be identified as intersection of contiguous faces.Modified/generated shapes may be placed to one named shape andidentified as this named shape and source named shape that also can beidentified with used algorithms.TNaming_NamedShape may contain a fewpairs of hooks with the same evolution. In thiscase topology shape, which belongs to thenamed shape, is a compound of new shapes.The data model contains both the topologyand the hooks, and functions handle bothtopological entities and hooks. Consider thecase of a box function, which creates a solidwith six faces and six hooks. Each hook isattached to a face. If you want, you can alsohave this function create hooks for edges andvertices as well as for faces. For the sake ofsimplicity though, let’s limit the example.Not all functions can define explicit hooks forall topological entities they create, but alltopological entities can be turned into hookswhen necessary. This is where topological naming is necessary.-Category: GUIDc4ef4200-568f-11d1-8940-080009dc3333 TNaming_NamedShapec4ef4201-568f-11d1-8940-080009dc3333 TNaming_UsedShapes
-
class
Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_DeltaOnModification
(*args)¶ Bases:
OCC.TDF.Handle_TDF_DeltaOnModification
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_DeltaOnRemoval
(*args)¶ Bases:
OCC.TDF.Handle_TDF_DeltaOnRemoval
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_ListNodeOfListOfMapOfShape
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_ListNodeOfListOfNamedShape
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_NamedShape
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_Naming
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_StdMapNodeOfMapOfNamedShape
(*args)¶ Bases:
OCC.TCollection.Handle_TCollection_MapNode
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_TranslateTool
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TNaming_UsedShapes
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
TNaming_Builder
(*args)¶ Bases:
object
- Create an Builder. Warning: Before Addition copies the current Value, and clear
Parameters: aLabel (TDF_Label &) – Return type: None -
Delete
()¶ - Records the shape oldShape which was deleted from the current label. As an example, consider the case of a face removed by a Boolean operation.
Parameters: oldShape (TopoDS_Shape &) – Return type: None
-
Generated
()¶ - Records the shape newShape which was generated during a topological construction. As an example, consider the case of a face generated in construction of a box.
Parameters: newShape (TopoDS_Shape &) – Return type: None - Records the shape newShape which was generated from the shape oldShape during a topological construction. As an example, consider the case of a face generated from an edge in construction of a prism.
Parameters: - oldShape (TopoDS_Shape &) –
- newShape (TopoDS_Shape &) –
Return type:
-
Modify
()¶ - Records the shape newShape which is a modification of the shape oldShape. As an example, consider the case of a face split or merged in a Boolean operation.
Parameters: - oldShape (TopoDS_Shape &) –
- newShape (TopoDS_Shape &) –
Return type:
-
NamedShape
()¶ - Returns the NamedShape which has been built or is under construction.
Return type: Handle_TNaming_NamedShape
-
Select
()¶ - Add a Shape to the current label , This Shape is unmodified. Used for example to define a set of shapes under a label.
Parameters: - aShape (TopoDS_Shape &) –
- inShape (TopoDS_Shape &) –
Return type:
-
thisown
¶ The membership flag
-
class
TNaming_CopyShape
¶ Bases:
object
-
static
CopyTool
()¶ - Makes copy a set of shape(s), using the aMap
Parameters: - aShape (TopoDS_Shape &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
- aResult (TopoDS_Shape &) –
Return type: void
-
static
Translate
()¶ - Translates a Transient shape(s) to Transient
Parameters: - aShape (TopoDS_Shape &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
- aResult (TopoDS_Shape &) –
- TrTool (Handle_TNaming_TranslateTool &) –
Return type: void
- Translates a Topological Location to an other Top. Location
Parameters: - L (TopLoc_Location &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:
-
thisown
¶ The membership flag
-
static
-
TNaming_CopyShape_CopyTool
()¶ - Makes copy a set of shape(s), using the aMap
Parameters: - aShape (TopoDS_Shape &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
- aResult (TopoDS_Shape &) –
Return type: void
-
TNaming_CopyShape_Translate
()¶ - Translates a Transient shape(s) to Transient
Parameters: - aShape (TopoDS_Shape &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
- aResult (TopoDS_Shape &) –
- TrTool (Handle_TNaming_TranslateTool &) –
Return type: void
- Translates a Topological Location to an other Top. Location
Parameters: - L (TopLoc_Location &) –
- aMap (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:
-
class
TNaming_DataMapIteratorOfDataMapOfShapePtrRefShape
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (TNaming_DataMapOfShapePtrRefShape &) – Return type: None -
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TNaming_PtrRefShape
-
thisown
¶ The membership flag
-
-
class
TNaming_DataMapIteratorOfDataMapOfShapeShapesSet
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (TNaming_DataMapOfShapeShapesSet &) – Return type: None -
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TNaming_ShapesSet
-
thisown
¶ The membership flag
-
-
class
TNaming_DataMapNodeOfDataMapOfShapePtrRefShape
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K (TopoDS_Shape &) –
- I (TNaming_PtrRefShape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TNaming_PtrRefShape
-
thisown
¶ The membership flag
-
class
TNaming_DataMapNodeOfDataMapOfShapeShapesSet
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K (TopoDS_Shape &) –
- I (TNaming_ShapesSet &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Key
()¶ Return type: TopoDS_Shape
-
Value
()¶ Return type: TNaming_ShapesSet
-
thisown
¶ The membership flag
-
class
TNaming_DataMapOfShapePtrRefShape
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: NbBuckets (int) – default value is 1 Return type: None -
Assign
()¶ Parameters: Other (TNaming_DataMapOfShapePtrRefShape &) – Return type: TNaming_DataMapOfShapePtrRefShape
-
ChangeFind
()¶ Parameters: K (TopoDS_Shape &) – Return type: TNaming_PtrRefShape
-
ChangeFind1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find
()¶ Parameters: K (TopoDS_Shape &) – Return type: TNaming_PtrRefShape
-
Find1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set
()¶ Parameters: Other (TNaming_DataMapOfShapePtrRefShape &) – Return type: TNaming_DataMapOfShapePtrRefShape
-
thisown
¶ The membership flag
-
-
class
TNaming_DataMapOfShapeShapesSet
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: NbBuckets (int) – default value is 1 Return type: None -
Assign
()¶ Parameters: Other (TNaming_DataMapOfShapeShapesSet &) – Return type: TNaming_DataMapOfShapeShapesSet
-
ChangeFind
()¶ Parameters: K (TopoDS_Shape &) – Return type: TNaming_ShapesSet
-
ChangeFind1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Find
()¶ Parameters: K (TopoDS_Shape &) – Return type: TNaming_ShapesSet
-
Find1
()¶ Parameters: K (TopoDS_Shape &) – Return type: Standard_Address
-
Set
()¶ Parameters: Other (TNaming_DataMapOfShapeShapesSet &) – Return type: TNaming_DataMapOfShapeShapesSet
-
thisown
¶ The membership flag
-
-
class
TNaming_DeltaOnModification
(*args)¶ Bases:
OCC.TDF.TDF_DeltaOnModification
- Initializes a TDF_DeltaOnModification.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
TNaming_DeltaOnRemoval
(*args)¶ Bases:
OCC.TDF.TDF_DeltaOnRemoval
- Initializes a TDF_DeltaOnModification.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: None -
GetHandle
()¶
-
thisown
¶ The membership flag
-
class
TNaming_Identifier
(*args)¶ Bases:
object
Parameters: - Lab (TDF_Label &) –
- S (TopoDS_Shape &) –
- Context (TopoDS_Shape &) –
- Geom (bool) –
- Lab –
- S –
- ContextNS (Handle_TNaming_NamedShape &) –
- Geom –
Return type: Return type: -
AncestorIdentification
()¶ Parameters: - Localizer (TNaming_Localizer &) –
- Context (TopoDS_Shape &) –
Return type:
-
Feature
()¶ Return type: Handle_TNaming_NamedShape
-
FeatureArg
()¶ Return type: Handle_TNaming_NamedShape
-
GeneratedIdentification
()¶ Parameters: - Localizer (TNaming_Localizer &) –
- NS (Handle_TNaming_NamedShape &) –
Return type:
-
Identification
()¶ Parameters: - Localizer (TNaming_Localizer &) –
- NS (Handle_TNaming_NamedShape &) –
Return type:
-
NamedShapeOfGeneration
()¶ Return type: Handle_TNaming_NamedShape
-
PrimitiveIdentification
()¶ Parameters: - Localizer (TNaming_Localizer &) –
- NS (Handle_TNaming_NamedShape &) –
Return type:
-
ShapeArg
()¶ Return type: TopoDS_Shape
-
ShapeContext
()¶ Return type: TopoDS_Shape
-
Type
()¶ Return type: TNaming_NameType
-
thisown
¶ The membership flag
-
class
TNaming_Iterator
(*args)¶ Bases:
object
- Iterates on all the history records in <anAtt>.
Parameters: anAtt (Handle_TNaming_NamedShape &) – Return type: None - Iterates on all the history records in the current transaction
Parameters: aLabel (TDF_Label &) – Return type: None - Iterates on all the history records in the transaction <aTrans>
Parameters: - aLabel (TDF_Label &) –
- aTrans (int) –
Return type: -
Evolution
()¶ Return type: TNaming_Evolution
-
IsModification
()¶ - Returns true if the new shape is a modification (split, fuse,etc…) of the old shape.
Return type: bool
-
NewShape
()¶ - Returns the new shape in this iterator object.
Return type: TopoDS_Shape
-
OldShape
()¶ - Returns the old shape in this iterator object. This shape can be a null one.
Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
class
TNaming_IteratorOnShapesSet
(*args)¶ Bases:
object
Return type: None Parameters: S (TNaming_ShapesSet &) – Return type: None -
Value
()¶ Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
class
TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape
(*args)¶ Bases:
object
Return type: None Parameters: L (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) – Return type: None -
Value
()¶ Return type: TopTools_IndexedDataMapOfShapeListOfShape
-
thisown
¶ The membership flag
-
-
class
TNaming_ListIteratorOfListOfMapOfShape
(*args)¶ Bases:
object
Return type: None Parameters: L (TNaming_ListOfMapOfShape &) – Return type: None -
Value
()¶ Return type: TopTools_MapOfShape
-
thisown
¶ The membership flag
-
-
class
TNaming_ListIteratorOfListOfNamedShape
(*args)¶ Bases:
object
Return type: None Parameters: L (TNaming_ListOfNamedShape &) – Return type: None -
Value
()¶ Return type: Handle_TNaming_NamedShape
-
thisown
¶ The membership flag
-
-
class
TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - I (TopTools_IndexedDataMapOfShapeListOfShape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: TopTools_IndexedDataMapOfShapeListOfShape
-
thisown
¶ The membership flag
-
class
TNaming_ListNodeOfListOfMapOfShape
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - I (TopTools_MapOfShape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: TopTools_MapOfShape
-
thisown
¶ The membership flag
-
class
TNaming_ListNodeOfListOfNamedShape
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - I (Handle_TNaming_NamedShape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Value
()¶ Return type: Handle_TNaming_NamedShape
-
thisown
¶ The membership flag
-
class
TNaming_ListOfIndexedDataMapOfShapeListOfShape
(*args)¶ Bases:
object
Return type: None Parameters: Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) – Return type: None -
Append
()¶ Parameters: - I (TopTools_IndexedDataMapOfShapeListOfShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
- Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
Return type: Return type: Return type:
-
First
()¶ Return type: TopTools_IndexedDataMapOfShapeListOfShape
-
InsertAfter
()¶ Parameters: - I (TopTools_IndexedDataMapOfShapeListOfShape &) –
- It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
- Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
- It –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - I (TopTools_IndexedDataMapOfShapeListOfShape &) –
- It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
- Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
- It –
Return type: Return type:
-
Last
()¶ Return type: TopTools_IndexedDataMapOfShapeListOfShape
-
Prepend
()¶ Parameters: - I (TopTools_IndexedDataMapOfShapeListOfShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
- Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
Return type: Return type: Return type:
-
Remove
()¶ Parameters: It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) – Return type: None
-
thisown
¶ The membership flag
-
-
class
TNaming_ListOfMapOfShape
(*args)¶ Bases:
object
Return type: None Parameters: Other (TNaming_ListOfMapOfShape &) – Return type: None -
Append
()¶ Parameters: - I (TopTools_MapOfShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfMapOfShape &) –
- Other (TNaming_ListOfMapOfShape &) –
Return type: Return type: Return type:
-
First
()¶ Return type: TopTools_MapOfShape
-
InsertAfter
()¶ Parameters: - I (TopTools_MapOfShape &) –
- It (TNaming_ListIteratorOfListOfMapOfShape &) –
- Other (TNaming_ListOfMapOfShape &) –
- It –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - I (TopTools_MapOfShape &) –
- It (TNaming_ListIteratorOfListOfMapOfShape &) –
- Other (TNaming_ListOfMapOfShape &) –
- It –
Return type: Return type:
-
Last
()¶ Return type: TopTools_MapOfShape
-
Prepend
()¶ Parameters: - I (TopTools_MapOfShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfMapOfShape &) –
- Other (TNaming_ListOfMapOfShape &) –
Return type: Return type: Return type:
-
thisown
¶ The membership flag
-
-
class
TNaming_ListOfNamedShape
(*args)¶ Bases:
object
Return type: None Parameters: Other (TNaming_ListOfNamedShape &) – Return type: None -
Append
()¶ Parameters: - I (Handle_TNaming_NamedShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfNamedShape &) –
- Other (TNaming_ListOfNamedShape &) –
Return type: Return type: Return type:
-
First
()¶ Return type: Handle_TNaming_NamedShape
-
InsertAfter
()¶ Parameters: - I (Handle_TNaming_NamedShape &) –
- It (TNaming_ListIteratorOfListOfNamedShape &) –
- Other (TNaming_ListOfNamedShape &) –
- It –
Return type: Return type:
-
InsertBefore
()¶ Parameters: - I (Handle_TNaming_NamedShape &) –
- It (TNaming_ListIteratorOfListOfNamedShape &) –
- Other (TNaming_ListOfNamedShape &) –
- It –
Return type: Return type:
-
Last
()¶ Return type: Handle_TNaming_NamedShape
-
Prepend
()¶ Parameters: - I (Handle_TNaming_NamedShape &) –
- I –
- theIt (TNaming_ListIteratorOfListOfNamedShape &) –
- Other (TNaming_ListOfNamedShape &) –
Return type: Return type: Return type:
-
thisown
¶ The membership flag
-
-
class
TNaming_Localizer
(*args)¶ Bases:
object
Return type: None -
Ancestors
()¶ Parameters: - S (TopoDS_Shape &) –
- Type (TopAbs_ShapeEnum) –
Return type:
-
Backward
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- S (TopoDS_Shape &) –
- Primitives (TNaming_MapOfNamedShape &) –
- ValidShapes (TopTools_MapOfShape &) –
Return type:
-
FindFeaturesInAncestors
()¶ Parameters: - S (TopoDS_Shape &) –
- In (TopoDS_Shape &) –
- AncInFeatures (TopTools_MapOfShape &) –
Return type:
-
static
FindGenerator
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- S (TopoDS_Shape &) –
- theListOfGenerators (TopTools_ListOfShape &) –
Return type: void
-
FindNeighbourg
()¶ Parameters: - Cont (TopoDS_Shape &) –
- S (TopoDS_Shape &) –
- Neighbourg (TopTools_MapOfShape &) –
Return type:
-
static
FindShapeContext
()¶ - Finds context of the shape <S>.
Parameters: - NS (Handle_TNaming_NamedShape &) –
- theS (TopoDS_Shape &) –
- theSC (TopoDS_Shape &) –
Return type: void
-
GoBack
()¶ Parameters: - S (TopoDS_Shape &) –
- Lab (TDF_Label &) –
- Evol (TNaming_Evolution) –
- OldS (TopTools_ListOfShape &) –
- OldLab (TNaming_ListOfNamedShape &) –
Return type:
-
static
IsNew
()¶ Parameters: - S (TopoDS_Shape &) –
- NS (Handle_TNaming_NamedShape &) –
Return type:
-
SubShapes
()¶ Parameters: - S (TopoDS_Shape &) –
- Type (TopAbs_ShapeEnum) –
Return type:
-
thisown
¶ The membership flag
-
-
TNaming_Localizer_FindGenerator
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- S (TopoDS_Shape &) –
- theListOfGenerators (TopTools_ListOfShape &) –
Return type: void
-
TNaming_Localizer_FindShapeContext
()¶ - Finds context of the shape <S>.
Parameters: - NS (Handle_TNaming_NamedShape &) –
- theS (TopoDS_Shape &) –
- theSC (TopoDS_Shape &) –
Return type: void
-
TNaming_Localizer_IsNew
()¶ Parameters: - S (TopoDS_Shape &) –
- NS (Handle_TNaming_NamedShape &) –
Return type:
-
class
TNaming_MapIteratorOfMapOfNamedShape
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMapIterator
Return type: None Parameters: aMap (TNaming_MapOfNamedShape &) – Return type: None -
Key
()¶ Return type: Handle_TNaming_NamedShape
-
thisown
¶ The membership flag
-
-
class
TNaming_MapOfNamedShape
(*args)¶ Bases:
OCC.TCollection.TCollection_BasicMap
Parameters: - NbBuckets (int) – default value is 1
- Other (TNaming_MapOfNamedShape &) –
Return type: Return type: -
Assign
()¶ Parameters: Other (TNaming_MapOfNamedShape &) – Return type: TNaming_MapOfNamedShape
-
Set
()¶ Parameters: Other (TNaming_MapOfNamedShape &) – Return type: TNaming_MapOfNamedShape
-
thisown
¶ The membership flag
-
class
TNaming_Name
(*args)¶ Bases:
object
Return type: None -
Arguments
()¶ Return type: TNaming_ListOfNamedShape
-
Orientation
()¶ Parameters: theOrientation (TopAbs_Orientation) – Return type: None Return type: TopAbs_Orientation
-
Shape
()¶ Parameters: theShape (TopoDS_Shape &) – Return type: None Return type: TopoDS_Shape
-
StopNamedShape
()¶ Parameters: arg (Handle_TNaming_NamedShape &) – Return type: None Return type: Handle_TNaming_NamedShape
-
thisown
¶ The membership flag
-
-
class
TNaming_NamedShape
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DeltaOnModification
()¶ - Makes a DeltaOnModification between <self> and <anOldAttribute.
Parameters: anOldAttribute (Handle_TDF_Attribute &) – Return type: Handle_TDF_DeltaOnModification - Applies a DeltaOnModification to <self>.
Parameters: aDelta (Handle_TDF_DeltaOnModification &) – Return type: void
-
DumpToString
()¶ TNaming_NamedShape_DumpToString(TNaming_NamedShape self) -> std::string
-
Evolution
()¶ - Returns the Evolution of the attribute.
Return type: TNaming_Evolution
-
Get
()¶ - Returns the shapes contained in <NS>. Returns a null shape if IsEmpty.
Return type: TopoDS_Shape
-
GetHandle
()¶
-
static
GetID
()¶ - class method ============ Returns the GUID for named shapes.
Return type: Standard_GUID
-
thisown
¶ The membership flag
-
-
class
TNaming_NamedShapeHasher
¶ Bases:
object
-
static
IsEqual
()¶ Parameters: - K1 (Handle_TNaming_NamedShape &) –
- K2 (Handle_TNaming_NamedShape &) –
Return type:
-
thisown
¶ The membership flag
-
static
-
TNaming_NamedShapeHasher_HashCode
()¶ Parameters: - K (Handle_TNaming_NamedShape &) –
- Upper (int) –
Return type:
-
TNaming_NamedShapeHasher_IsEqual
()¶ Parameters: - K1 (Handle_TNaming_NamedShape &) –
- K2 (Handle_TNaming_NamedShape &) –
Return type:
-
TNaming_NamedShape_GetID
()¶ - class method ============ Returns the GUID for named shapes.
Return type: Standard_GUID
-
class
TNaming_Naming
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
ChangeName
()¶ Return type: TNaming_Name
-
DumpToString
()¶ TNaming_Naming_DumpToString(TNaming_Naming self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - following code from TDesignStd ==============================
Return type: Standard_GUID
-
GetName
()¶ Return type: TNaming_Name
-
static
Insert
(*args) → OCC.TNaming.Handle_TNaming_Naming¶ Parameters: under (TDF_Label &) – Return type: Handle_TNaming_Naming
-
static
Name
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Creates a Namimg attribute at label <where> to identify the shape <Selection>. Geometry is Standard_True if we are only interested by the underlying geometry (e.g. setting a constraint). <Context> is used to find neighbours of <S> when required by the naming. If KeepOrientation is True the Selection orientation is taken into account. BNproblem == True points out that Context sub-shapes in DF have orientation differences with Context shape itself. instance method ===============
Parameters: Return type:
-
Regenerate
()¶ - regenerate only the Name associated to me
Parameters: scope (TDF_LabelMap &) – Return type: bool
-
Solve
()¶ - Regenerate recursively the whole name with scope. If scope is empty it means that all the labels of the framework are valid.
Parameters: scope (TDF_LabelMap &) – Return type: bool
-
thisown
¶ The membership flag
-
-
class
TNaming_NamingTool
¶ Bases:
object
-
static
BuildDescendants
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- Labels (TDF_LabelMap &) –
Return type: void
-
static
CurrentShape
()¶ Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- NS (Handle_TNaming_NamedShape &) –
- MS (TopTools_IndexedMapOfShape &) –
Return type: void
-
static
CurrentShapeFromShape
()¶ Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- Acces (TDF_Label &) –
- S (TopoDS_Shape &) –
- MS (TopTools_IndexedMapOfShape &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
TNaming_NamingTool_BuildDescendants
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- Labels (TDF_LabelMap &) –
Return type: void
-
TNaming_NamingTool_CurrentShape
()¶ Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- NS (Handle_TNaming_NamedShape &) –
- MS (TopTools_IndexedMapOfShape &) –
Return type: void
-
TNaming_NamingTool_CurrentShapeFromShape
()¶ Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- Acces (TDF_Label &) –
- S (TopoDS_Shape &) –
- MS (TopTools_IndexedMapOfShape &) –
Return type: void
-
TNaming_Naming_GetID
()¶ - following code from TDesignStd ==============================
Return type: Standard_GUID
-
TNaming_Naming_Insert
(*args) → OCC.TNaming.Handle_TNaming_Naming¶ Parameters: under (TDF_Label &) – Return type: Handle_TNaming_Naming
-
TNaming_Naming_Name
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Creates a Namimg attribute at label <where> to identify the shape <Selection>. Geometry is Standard_True if we are only interested by the underlying geometry (e.g. setting a constraint). <Context> is used to find neighbours of <S> when required by the naming. If KeepOrientation is True the Selection orientation is taken into account. BNproblem == True points out that Context sub-shapes in DF have orientation differences with Context shape itself. instance method ===============
Parameters: Return type:
-
class
TNaming_NewShapeIterator
(*args)¶ Bases:
object
Parameters: - aShape (TopoDS_Shape &) –
- Transaction (int) –
- access (TDF_Label &) –
- aShape –
- access –
Return type: Return type: - Iterates from the current Shape in <anIterator>
Parameters: anIterator (TNaming_NewShapeIterator &) – Return type: None - Iterates from the current Shape in <anIterator>
Parameters: anIterator (TNaming_Iterator &) – Return type: None -
IsModification
()¶ - True if the new shape is a modification (split, fuse,etc…) of the old shape.
Return type: bool
-
NamedShape
()¶ Return type: Handle_TNaming_NamedShape
-
Shape
()¶ - Warning! Can be a Null Shape if a descendant is deleted.
Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
class
TNaming_OldShapeIterator
(*args)¶ Bases:
object
Parameters: - aShape (TopoDS_Shape &) –
- Transaction (int) –
- access (TDF_Label &) –
- aShape –
- access –
Return type: Return type: - Iterates from the current Shape in <anIterator>
Parameters: anIterator (TNaming_OldShapeIterator &) – Return type: None - Iterates from the current Shape in <anIterator>
Parameters: anIterator (TNaming_Iterator &) – Return type: None -
IsModification
()¶ - True if the new shape is a modification (split, fuse,etc…) of the old shape.
Return type: bool
-
NamedShape
()¶ Return type: Handle_TNaming_NamedShape
-
Shape
()¶ Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
class
TNaming_RefShape
(*args)¶ Bases:
object
Return type: None Parameters: S (TopoDS_Shape &) – Return type: None -
NamedShape
()¶ Return type: Handle_TNaming_NamedShape
-
Shape
()¶ Parameters: S (TopoDS_Shape &) – Return type: None Return type: TopoDS_Shape
-
thisown
¶ The membership flag
-
-
class
TNaming_SameShapeIterator
(*args)¶ Bases:
object
Parameters: - aShape (TopoDS_Shape &) –
- access (TDF_Label &) –
Return type: -
thisown
¶ The membership flag
-
class
TNaming_Scope
(*args)¶ Bases:
object
- WithValid = False
Return type: None - if <WithValid> the scope is defined by the map. If not on the whole framework.
Parameters: WithValid (bool) – Return type: None - create a scope with a map. WithValid = True.
Parameters: valid (TDF_LabelMap &) – Return type: None -
ChangeValid
()¶ Return type: TDF_LabelMap
-
CurrentShape
()¶ - Returns the current value of <NS> according to the Valid Scope.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape
-
GetValid
()¶ Return type: TDF_LabelMap
-
UnvalidChildren
()¶ Parameters: - L (TDF_Label &) –
- withroot (bool) – default value is Standard_True
Return type:
-
ValidChildren
()¶ Parameters: - L (TDF_Label &) –
- withroot (bool) – default value is Standard_True
Return type:
-
thisown
¶ The membership flag
-
class
TNaming_Selector
(*args)¶ Bases:
object
- Create a selector on this label to select a shape. ==================
Parameters: aLabel (TDF_Label &) – Return type: None -
Arguments
()¶ - Returns the attribute list args. This list contains the named shape on which the topological naming was built.
Parameters: args (TDF_AttributeMap &) – Return type: None
-
static
IsIdentified
()¶ - To know if a shape is already identified (not selected) ======================================================= //! The label access defines the point of access to the data framework. selection is the shape for which we want to know whether it is identified or not. If true, NS is returned as the identity of selection. If Geometry is true, NS will be the named shape containing the first appearance of selection and not any other shape. In other words, selection must be the only shape stored in NS.
Parameters: - access (TDF_Label &) –
- selection (TopoDS_Shape &) –
- NS (Handle_TNaming_NamedShape &) –
- Geometry (bool) – default value is Standard_False
Return type:
-
NamedShape
()¶ - Returns the NamedShape build or under construction, which contains the topological naming..
Return type: Handle_TNaming_NamedShape
-
Select
()¶ - Creates a topological naming on the label aLabel given as an argument at construction time. If successful, the shape Selection - found in the shape Context - is now identified in the named shape returned in NamedShape. If Geometry is true, NamedShape contains the first appearance of Selection. This syntax is more robust than the previous syntax for this method.
Parameters: Return type: - Creates a topological naming on the label aLabel given as an argument at construction time. If successful, the shape Selection is now identified in the named shape returned in NamedShape. If Geometry is true, NamedShape contains the first appearance of Selection.
Parameters: Return type:
-
Solve
()¶ - Updates the topological naming on the label aLabel given as an argument at construction time. The underlying shape returned in the method NamedShape is updated. To read this shape, use the method TNaming_Tool::GetShape
Parameters: Valid (TDF_LabelMap &) – Return type: bool
-
thisown
¶ The membership flag
-
TNaming_Selector_IsIdentified
()¶ - To know if a shape is already identified (not selected) ======================================================= //! The label access defines the point of access to the data framework. selection is the shape for which we want to know whether it is identified or not. If true, NS is returned as the identity of selection. If Geometry is true, NS will be the named shape containing the first appearance of selection and not any other shape. In other words, selection must be the only shape stored in NS.
Parameters: - access (TDF_Label &) –
- selection (TopoDS_Shape &) –
- NS (Handle_TNaming_NamedShape &) –
- Geometry (bool) – default value is Standard_False
Return type:
-
class
TNaming_ShapesSet
(*args)¶ Bases:
object
Return type: Parameters: - S (TopoDS_Shape &) –
- Type (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type: -
Add
()¶ - Adds the Shape <S>
Parameters: S (TopoDS_Shape &) – Return type: bool - Adds the shapes contained in <Shapes>.
Parameters: Shapes (TNaming_ShapesSet &) – Return type: None
-
ChangeMap
()¶ Return type: TopTools_MapOfShape
-
Filter
()¶ - Erases in <self> the shapes not contained in <Shapes>
Parameters: Shapes (TNaming_ShapesSet &) – Return type: None
-
Map
()¶ Return type: TopTools_MapOfShape
-
Remove
()¶ - Removes <S> in <self>.
Parameters: S (TopoDS_Shape &) – Return type: bool - Removes in <self> the shapes contained in <Shapes>
Parameters: Shapes (TNaming_ShapesSet &) – Return type: None
-
thisown
¶ The membership flag
-
class
TNaming_StdMapNodeOfMapOfNamedShape
(*args)¶ Bases:
OCC.TCollection.TCollection_MapNode
Parameters: - K (Handle_TNaming_NamedShape &) –
- n (TCollection_MapNodePtr &) –
Return type: -
GetHandle
()¶
-
Key
()¶ Return type: Handle_TNaming_NamedShape
-
thisown
¶ The membership flag
-
class
TNaming_Tool
¶ Bases:
object
-
static
Collect
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- Labels (TNaming_MapOfNamedShape &) –
- OnlyModif (bool) – default value is Standard_True
Return type: void
-
static
CurrentNamedShape
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Returns the NamedShape of the last Modification of <NS>. This shape is identified by a label.
Parameters: - NS (Handle_TNaming_NamedShape &) –
- Updated (TDF_LabelMap &) –
Return type: - Returns NamedShape the last Modification of <NS>.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: Handle_TNaming_NamedShape
-
static
CurrentShape
()¶ - Returns the last Modification of <NS>. Returns the shape CurrentShape contained in the named shape attribute NS. CurrentShape is the current state of the entities if they have been modified in other attributes of the same data structure. Each call to this function creates a new compound.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape - Returns the shape CurrentShape contained in the named shape attribute NS, and present in the updated attribute map Updated. CurrentShape is the current state of the entities if they have been modified in other attributes of the same data structure. Each call to this function creates a new compound. Warning Only the contents of Updated are searched.R
Parameters: - NS (Handle_TNaming_NamedShape &) –
- Updated (TDF_LabelMap &) –
Return type:
-
static
FindShape
()¶ - Returns the current shape (a Wire or a Shell) built (in the data framework) from the the shapes of the argument named shape. It is used for IDENTITY name type computation.
Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- Arg (Handle_TNaming_NamedShape &) –
- S (TopoDS_Shape &) –
Return type: void
-
static
GeneratedShape
()¶ - Returns the shape generated from S or by a modification of S and contained in the named shape Generation.
Parameters: - S (TopoDS_Shape &) –
- Generation (Handle_TNaming_NamedShape &) –
Return type:
-
static
GetShape
()¶ - Returns the entities stored in the named shape attribute NS. If there is only one old-new pair, the new shape is returned. Otherwise, a Compound is returned. This compound is made out of all the new shapes found. Each call to this function creates a new compound.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape
-
static
HasLabel
()¶ - Returns True if <aShape> appears under a label.(DP)
Parameters: - access (TDF_Label &) –
- aShape (TopoDS_Shape &) –
Return type:
-
static
InitialShape
()¶ - Returns the shape created from the shape aShape contained in the attribute anAcces.
Parameters: - aShape (TopoDS_Shape &) –
- anAcces (TDF_Label &) –
- Labels (TDF_LabelList &) –
Return type:
-
static
Label
()¶ - Returns the label of the first apparition of <aShape>. Transdef is a value of the transaction of the first apparition of <aShape>.
Parameters: - access (TDF_Label &) –
- aShape (TopoDS_Shape &) –
- TransDef (int &) –
Return type:
-
static
NamedShape
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Returns the named shape attribute defined by the shape aShape and the label anAccess. This attribute is returned as a new shape. You call this function, if you need to create a topological attribute for existing data. Example class MyPkg_MyClass { public: Standard_Boolean SameEdge(const Handle_OCafTest_Line& , const Handle_CafTest_Line& ); }; //! Standard_Boolean MyPkg_MyClass::SameEdge (const Handle_OCafTest_Line& L1 const Handle_OCafTest_Line& L2) { Handle_TNaming_NamedShape NS1 = L1->NamedShape(); Handle_TNaming_NamedShape NS2 = L2->NamedShape(); //! return BRepTools::Compare(NS1->Get(),NS2->Get()); } In the example above, the function SameEdge is created to compare the edges having two lines for geometric supports. If these edges are found by BRepTools::Compare to be within the same tolerance, they are considered to be the same. Warning To avoid sharing of names, a SELECTED attribute will not be returned. Sharing of names makes it harder to manage the data structure. When the user of the name is removed, for example, it is difficult to know whether the name should be destroyed.
Parameters: - aShape (TopoDS_Shape &) –
- anAcces (TDF_Label &) –
Return type:
-
static
OriginalShape
()¶ - Returns the shape contained as OldShape in <NS>
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape
-
static
ValidUntil
()¶ - Returns the last transaction where the creation of S is valid.
Parameters: - access (TDF_Label &) –
- S (TopoDS_Shape &) –
Return type:
-
thisown
¶ The membership flag
-
static
-
TNaming_Tool_Collect
()¶ Parameters: - NS (Handle_TNaming_NamedShape &) –
- Labels (TNaming_MapOfNamedShape &) –
- OnlyModif (bool) – default value is Standard_True
Return type: void
-
TNaming_Tool_CurrentNamedShape
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Returns the NamedShape of the last Modification of <NS>. This shape is identified by a label.
Parameters: - NS (Handle_TNaming_NamedShape &) –
- Updated (TDF_LabelMap &) –
Return type: - Returns NamedShape the last Modification of <NS>.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: Handle_TNaming_NamedShape
-
TNaming_Tool_CurrentShape
()¶ - Returns the last Modification of <NS>. Returns the shape CurrentShape contained in the named shape attribute NS. CurrentShape is the current state of the entities if they have been modified in other attributes of the same data structure. Each call to this function creates a new compound.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape - Returns the shape CurrentShape contained in the named shape attribute NS, and present in the updated attribute map Updated. CurrentShape is the current state of the entities if they have been modified in other attributes of the same data structure. Each call to this function creates a new compound. Warning Only the contents of Updated are searched.R
Parameters: - NS (Handle_TNaming_NamedShape &) –
- Updated (TDF_LabelMap &) –
Return type:
-
TNaming_Tool_FindShape
()¶ - Returns the current shape (a Wire or a Shell) built (in the data framework) from the the shapes of the argument named shape. It is used for IDENTITY name type computation.
Parameters: - Valid (TDF_LabelMap &) –
- Forbiden (TDF_LabelMap &) –
- Arg (Handle_TNaming_NamedShape &) –
- S (TopoDS_Shape &) –
Return type: void
-
TNaming_Tool_GeneratedShape
()¶ - Returns the shape generated from S or by a modification of S and contained in the named shape Generation.
Parameters: - S (TopoDS_Shape &) –
- Generation (Handle_TNaming_NamedShape &) –
Return type:
-
TNaming_Tool_GetShape
()¶ - Returns the entities stored in the named shape attribute NS. If there is only one old-new pair, the new shape is returned. Otherwise, a Compound is returned. This compound is made out of all the new shapes found. Each call to this function creates a new compound.
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape
-
TNaming_Tool_HasLabel
()¶ - Returns True if <aShape> appears under a label.(DP)
Parameters: - access (TDF_Label &) –
- aShape (TopoDS_Shape &) –
Return type:
-
TNaming_Tool_InitialShape
()¶ - Returns the shape created from the shape aShape contained in the attribute anAcces.
Parameters: - aShape (TopoDS_Shape &) –
- anAcces (TDF_Label &) –
- Labels (TDF_LabelList &) –
Return type:
-
TNaming_Tool_Label
()¶ - Returns the label of the first apparition of <aShape>. Transdef is a value of the transaction of the first apparition of <aShape>.
Parameters: - access (TDF_Label &) –
- aShape (TopoDS_Shape &) –
- TransDef (int &) –
Return type:
-
TNaming_Tool_NamedShape
(*args) → OCC.TNaming.Handle_TNaming_NamedShape¶ - Returns the named shape attribute defined by the shape aShape and the label anAccess. This attribute is returned as a new shape. You call this function, if you need to create a topological attribute for existing data. Example class MyPkg_MyClass { public: Standard_Boolean SameEdge(const Handle_OCafTest_Line& , const Handle_CafTest_Line& ); }; //! Standard_Boolean MyPkg_MyClass::SameEdge (const Handle_OCafTest_Line& L1 const Handle_OCafTest_Line& L2) { Handle_TNaming_NamedShape NS1 = L1->NamedShape(); Handle_TNaming_NamedShape NS2 = L2->NamedShape(); //! return BRepTools::Compare(NS1->Get(),NS2->Get()); } In the example above, the function SameEdge is created to compare the edges having two lines for geometric supports. If these edges are found by BRepTools::Compare to be within the same tolerance, they are considered to be the same. Warning To avoid sharing of names, a SELECTED attribute will not be returned. Sharing of names makes it harder to manage the data structure. When the user of the name is removed, for example, it is difficult to know whether the name should be destroyed.
Parameters: - aShape (TopoDS_Shape &) –
- anAcces (TDF_Label &) –
Return type:
-
TNaming_Tool_OriginalShape
()¶ - Returns the shape contained as OldShape in <NS>
Parameters: NS (Handle_TNaming_NamedShape &) – Return type: TopoDS_Shape
-
TNaming_Tool_ValidUntil
()¶ - Returns the last transaction where the creation of S is valid.
Parameters: - access (TDF_Label &) –
- S (TopoDS_Shape &) –
Return type:
-
class
TNaming_TranslateTool
(*args, **kwargs)¶ Bases:
OCC.MMgt.MMgt_TShared
-
GetHandle
()¶
-
UpdateEdge
()¶ Parameters: - S1 (TopoDS_Shape &) –
- S2 (TopoDS_Shape &) –
- M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:
-
UpdateFace
()¶ Parameters: - S1 (TopoDS_Shape &) –
- S2 (TopoDS_Shape &) –
- M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:
-
UpdateVertex
()¶ Parameters: - S1 (TopoDS_Shape &) –
- S2 (TopoDS_Shape &) –
- M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:
-
thisown
¶ The membership flag
-
-
class
TNaming_Translator
(*args)¶ Bases:
object
Return type: None -
Copied
()¶ - returns copied shape
Parameters: aShape (TopoDS_Shape &) – Return type: TopoDS_Shape - returns DataMap of results; (shape <-> copied shape)
Return type: TopTools_DataMapOfShapeShape
-
thisown
¶ The membership flag
-
-
class
TNaming_UsedShapes
(*args, **kwargs)¶ Bases:
OCC.TDF.TDF_Attribute
-
DumpToString
()¶ TNaming_UsedShapes_DumpToString(TNaming_UsedShapes self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - Returns the ID: 2a96b614-ec8b-11d0-bee7-080009dc3333.
Return type: Standard_GUID
-
Map
()¶ Return type: TNaming_DataMapOfShapePtrRefShape
-
thisown
¶ The membership flag
-
-
TNaming_UsedShapes_GetID
()¶ - Returns the ID: 2a96b614-ec8b-11d0-bee7-080009dc3333.
Return type: Standard_GUID
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
tnaming
¶ Bases:
object
-
static
ChangeShapes
()¶ - Remplace les shapes du label et des sous-labels par des copies.
Parameters: - label (TDF_Label &) –
- M (TopTools_DataMapOfShapeShape &) –
Return type: void
-
static
Displace
()¶ - Application de la Location sur les shapes du label et de ses sous labels.
Parameters: - label (TDF_Label &) –
- aLocation (TopLoc_Location &) –
- WithOld (bool) – default value is Standard_True
Return type: void
-
static
FindUniqueContext
()¶ - Find unique context of shape <S>
Parameters: - S (TopoDS_Shape &) –
- Context (TopoDS_Shape &) –
Return type:
-
static
FindUniqueContextSet
()¶ - Find unique context of shape <S>,which is pure concatenation of atomic shapes (Compound). The result is concatenation of single contexts
Parameters: - S (TopoDS_Shape &) –
- Context (TopoDS_Shape &) –
- Arr (Handle_TopTools_HArray1OfShape &) –
Return type:
-
static
IDList
()¶ - Appends to <anIDList> the list of the attributes IDs of this package. CAUTION: <anIDList> is NOT cleared before use.
Parameters: anIDList (TDF_IDList &) – Return type: void
-
static
MakeShape
()¶ - Builds shape from map content
Parameters: MS (TopTools_MapOfShape &) – Return type: TopoDS_Shape
-
static
OuterShell
()¶ - Returns True if outer Shell is found and the found shell in <theShell>. Print of TNaming enumeration =============================
Parameters: - theSolid (TopoDS_Solid &) –
- theShell (TopoDS_Shell &) –
Return type:
-
static
OuterWire
()¶ - Returns True if outer wire is found and the found wire in <theWire>.
Parameters: - theFace (TopoDS_Face &) –
- theWire (TopoDS_Wire &) –
Return type:
-
static
Print
()¶ - Prints the evolution <EVOL> as a String on the Stream <S> and returns <S>.
Parameters: - EVOL (TNaming_Evolution) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of name type <NAME> as a String on the Stream <S> and returns <S>.
Parameters: - NAME (TNaming_NameType) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the content of UsedShapes private attribute as a String Table on the Stream <S> and returns <S>.
Parameters: - ACCESS (TDF_Label &) –
- S (Standard_OStream &) –
Return type: Standard_OStream
-
static
Replicate
()¶ - Replicates the named shape with the transformation <T> on the label <L> (and sub-labels if necessary) (TNaming_GENERATED is set)
Parameters: - NS (Handle_TNaming_NamedShape &) –
- T (gp_Trsf) –
- L (TDF_Label &) –
Return type: void
- Replicates the shape with the transformation <T> on the label <L> (and sub-labels if necessary) (TNaming_GENERATED is set)
Parameters: - SH (TopoDS_Shape &) –
- T (gp_Trsf) –
- L (TDF_Label &) –
Return type: void
-
static
Substitute
()¶ - Subtituter les shapes sur les structures de source vers cible
Parameters: - labelsource (TDF_Label &) –
- labelcible (TDF_Label &) –
- mapOldNew (TopTools_DataMapOfShapeShape &) –
Return type: void
-
static
SubstituteSShape
()¶ - Subtitutes shape in source structure
Parameters: - accesslabel (TDF_Label &) –
- From (TopoDS_Shape &) –
- To (TopoDS_Shape &) –
Return type:
-
static
Transform
()¶ - Application de la transformation sur les shapes du label et de ses sous labels. Warning: le remplacement du shape est fait dans tous les attributs qui le contiennent meme si ceux ci ne sont pas associees a des sous-labels de <Label>.
Parameters: - label (TDF_Label &) –
- aTransformation (gp_Trsf) –
Return type: void
-
static
Update
()¶ - Mise a jour des shapes du label et de ses fils en tenant compte des substitutions decrite par mapOldNew. //! Warning: le remplacement du shape est fait dans tous les attributs qui le contiennent meme si ceux ci ne sont pas associees a des sous-labels de <Label>.
Parameters: - label (TDF_Label &) –
- mapOldNew (TopTools_DataMapOfShapeShape &) –
Return type: void
-
thisown
¶ The membership flag
-
static
-
tnaming_ChangeShapes
()¶ - Remplace les shapes du label et des sous-labels par des copies.
Parameters: - label (TDF_Label &) –
- M (TopTools_DataMapOfShapeShape &) –
Return type: void
-
tnaming_Displace
()¶ - Application de la Location sur les shapes du label et de ses sous labels.
Parameters: - label (TDF_Label &) –
- aLocation (TopLoc_Location &) –
- WithOld (bool) – default value is Standard_True
Return type: void
-
tnaming_FindUniqueContext
()¶ - Find unique context of shape <S>
Parameters: - S (TopoDS_Shape &) –
- Context (TopoDS_Shape &) –
Return type:
-
tnaming_FindUniqueContextSet
()¶ - Find unique context of shape <S>,which is pure concatenation of atomic shapes (Compound). The result is concatenation of single contexts
Parameters: - S (TopoDS_Shape &) –
- Context (TopoDS_Shape &) –
- Arr (Handle_TopTools_HArray1OfShape &) –
Return type:
-
tnaming_IDList
()¶ - Appends to <anIDList> the list of the attributes IDs of this package. CAUTION: <anIDList> is NOT cleared before use.
Parameters: anIDList (TDF_IDList &) – Return type: void
-
tnaming_MakeShape
()¶ - Builds shape from map content
Parameters: MS (TopTools_MapOfShape &) – Return type: TopoDS_Shape
-
tnaming_OuterShell
()¶ - Returns True if outer Shell is found and the found shell in <theShell>. Print of TNaming enumeration =============================
Parameters: - theSolid (TopoDS_Solid &) –
- theShell (TopoDS_Shell &) –
Return type:
-
tnaming_OuterWire
()¶ - Returns True if outer wire is found and the found wire in <theWire>.
Parameters: - theFace (TopoDS_Face &) –
- theWire (TopoDS_Wire &) –
Return type:
-
tnaming_Print
()¶ - Prints the evolution <EVOL> as a String on the Stream <S> and returns <S>.
Parameters: - EVOL (TNaming_Evolution) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of name type <NAME> as a String on the Stream <S> and returns <S>.
Parameters: - NAME (TNaming_NameType) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the content of UsedShapes private attribute as a String Table on the Stream <S> and returns <S>.
Parameters: - ACCESS (TDF_Label &) –
- S (Standard_OStream &) –
Return type: Standard_OStream
-
tnaming_Replicate
()¶ - Replicates the named shape with the transformation <T> on the label <L> (and sub-labels if necessary) (TNaming_GENERATED is set)
Parameters: - NS (Handle_TNaming_NamedShape &) –
- T (gp_Trsf) –
- L (TDF_Label &) –
Return type: void
- Replicates the shape with the transformation <T> on the label <L> (and sub-labels if necessary) (TNaming_GENERATED is set)
Parameters: - SH (TopoDS_Shape &) –
- T (gp_Trsf) –
- L (TDF_Label &) –
Return type: void
-
tnaming_Substitute
()¶ - Subtituter les shapes sur les structures de source vers cible
Parameters: - labelsource (TDF_Label &) –
- labelcible (TDF_Label &) –
- mapOldNew (TopTools_DataMapOfShapeShape &) –
Return type: void
-
tnaming_SubstituteSShape
()¶ - Subtitutes shape in source structure
Parameters: - accesslabel (TDF_Label &) –
- From (TopoDS_Shape &) –
- To (TopoDS_Shape &) –
Return type:
-
tnaming_Transform
()¶ - Application de la transformation sur les shapes du label et de ses sous labels. Warning: le remplacement du shape est fait dans tous les attributs qui le contiennent meme si ceux ci ne sont pas associees a des sous-labels de <Label>.
Parameters: - label (TDF_Label &) –
- aTransformation (gp_Trsf) –
Return type: void
-
tnaming_Update
()¶ - Mise a jour des shapes du label et de ses fils en tenant compte des substitutions decrite par mapOldNew. //! Warning: le remplacement du shape est fait dans tous les attributs qui le contiennent meme si ceux ci ne sont pas associees a des sous-labels de <Label>.
Parameters: - label (TDF_Label &) –
- mapOldNew (TopTools_DataMapOfShapeShape &) –
Return type: void