OCC.TNaming module

class Handle_TNaming_DataMapNodeOfDataMapOfShapePtrRefShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_DataMapNodeOfDataMapOfShapeShapesSet(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_DeltaOnModification(*args)

Bases: OCC.TDF.Handle_TDF_DeltaOnModification

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_DeltaOnRemoval(*args)

Bases: OCC.TDF.Handle_TDF_DeltaOnRemoval

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_ListNodeOfListOfIndexedDataMapOfShapeListOfShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_ListNodeOfListOfMapOfShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_ListNodeOfListOfNamedShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_NamedShape(*args)

Bases: OCC.TDF.Handle_TDF_Attribute

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_Naming(*args)

Bases: OCC.TDF.Handle_TDF_Attribute

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_StdMapNodeOfMapOfNamedShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_TranslateTool(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class Handle_TNaming_UsedShapes(*args)

Bases: OCC.TDF.Handle_TDF_Attribute

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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:

None

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:

None

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:

None

thisown

The membership flag

class TNaming_CopyShape

Bases: object

static CopyTool(*args)
  • 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(*args)
  • 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:

TopLoc_Location

thisown

The membership flag

TNaming_CopyShape_CopyTool(*args)
  • 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(*args)
  • 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:

TopLoc_Location

class TNaming_DataMapIteratorOfDataMapOfShapePtrRefShape(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Return type:None
Parameters:aMap (TNaming_DataMapOfShapePtrRefShape &) –
Return type:None
Initialize()
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
Initialize()
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:

None

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:

None

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
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TNaming_PtrRefShape &) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:TNaming_PtrRefShape
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:TNaming_PtrRefShape
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (int) –
Return type:None
Set()
Parameters:Other (TNaming_DataMapOfShapePtrRefShape &) –
Return type:TNaming_DataMapOfShapePtrRefShape
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
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
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TNaming_ShapesSet &) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:TNaming_ShapesSet
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:TNaming_ShapesSet
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (int) –
Return type:None
Set()
Parameters:Other (TNaming_DataMapOfShapeShapesSet &) –
Return type:TNaming_DataMapOfShapeShapesSet
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
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:

None

Return type:

None

AncestorIdentification()
Parameters:
  • Localizer (TNaming_Localizer &) –
  • Context (TopoDS_Shape &) –
Return type:

None

ArgIsFeature()
Return type:bool
Feature()
Return type:Handle_TNaming_NamedShape
FeatureArg()
Return type:Handle_TNaming_NamedShape
GeneratedIdentification()
Parameters:
  • Localizer (TNaming_Localizer &) –
  • NS (Handle_TNaming_NamedShape &) –
Return type:

None

Identification()
Parameters:
  • Localizer (TNaming_Localizer &) –
  • NS (Handle_TNaming_NamedShape &) –
Return type:

None

InitArgs()
Return type:None
IsDone()
Return type:bool
IsFeature()
Return type:bool
MoreArgs()
Return type:bool
NamedShapeOfGeneration()
Return type:Handle_TNaming_NamedShape
NextArg()
Return type:None
PrimitiveIdentification()
Parameters:
  • Localizer (TNaming_Localizer &) –
  • NS (Handle_TNaming_NamedShape &) –
Return type:

None

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:

None

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
More()
  • Returns True if there is a current Item in the iteration.
Return type:bool
NewShape()
  • Returns the new shape in this iterator object.
Return type:TopoDS_Shape
Next()
  • Moves the iteration to the next Item
Return type:None
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
Init()
  • Initialize the iteration
Parameters:S (TNaming_ShapesSet &) –
Return type:None
More()
  • Returns True if there is a current Item in the iteration.
Return type:bool
Next()
  • Move to the next Item
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
Initialize()
Parameters:L (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
Return type:None
More()
Return type:bool
Next()
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
Initialize()
Parameters:L (TNaming_ListOfMapOfShape &) –
Return type:None
More()
Return type:bool
Next()
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
Initialize()
Parameters:L (TNaming_ListOfNamedShape &) –
Return type:None
More()
Return type:bool
Next()
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:

None

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:

None

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:

None

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:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:TopTools_IndexedDataMapOfShapeListOfShape
InsertAfter()
Parameters:
  • I (TopTools_IndexedDataMapOfShapeListOfShape &) –
  • It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
  • Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (TopTools_IndexedDataMapOfShapeListOfShape &) –
  • It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
  • Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:TopTools_IndexedDataMapOfShapeListOfShape
Prepend()
Parameters:
  • I (TopTools_IndexedDataMapOfShapeListOfShape &) –
  • I
  • theIt (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
  • Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (TNaming_ListIteratorOfListOfIndexedDataMapOfShapeListOfShape &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (TNaming_ListOfIndexedDataMapOfShapeListOfShape &) –
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:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (TNaming_ListOfMapOfShape &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:TopTools_MapOfShape
InsertAfter()
Parameters:
  • I (TopTools_MapOfShape &) –
  • It (TNaming_ListIteratorOfListOfMapOfShape &) –
  • Other (TNaming_ListOfMapOfShape &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (TopTools_MapOfShape &) –
  • It (TNaming_ListIteratorOfListOfMapOfShape &) –
  • Other (TNaming_ListOfMapOfShape &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:TopTools_MapOfShape
Prepend()
Parameters:
  • I (TopTools_MapOfShape &) –
  • I
  • theIt (TNaming_ListIteratorOfListOfMapOfShape &) –
  • Other (TNaming_ListOfMapOfShape &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (TNaming_ListIteratorOfListOfMapOfShape &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (TNaming_ListOfMapOfShape &) –
Return type:None
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:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (TNaming_ListOfNamedShape &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_TNaming_NamedShape
InsertAfter()
Parameters:
  • I (Handle_TNaming_NamedShape &) –
  • It (TNaming_ListIteratorOfListOfNamedShape &) –
  • Other (TNaming_ListOfNamedShape &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_TNaming_NamedShape &) –
  • It (TNaming_ListIteratorOfListOfNamedShape &) –
  • Other (TNaming_ListOfNamedShape &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_TNaming_NamedShape
Prepend()
Parameters:
  • I (Handle_TNaming_NamedShape &) –
  • I
  • theIt (TNaming_ListIteratorOfListOfNamedShape &) –
  • Other (TNaming_ListOfNamedShape &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (TNaming_ListIteratorOfListOfNamedShape &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (TNaming_ListOfNamedShape &) –
Return type:None
thisown

The membership flag

class TNaming_Localizer(*args)

Bases: object

Return type:None
Ancestors()
Parameters:
  • S (TopoDS_Shape &) –
  • Type (TopAbs_ShapeEnum) –
Return type:

TopTools_IndexedDataMapOfShapeListOfShape

Backward()
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • S (TopoDS_Shape &) –
  • Primitives (TNaming_MapOfNamedShape &) –
  • ValidShapes (TopTools_MapOfShape &) –
Return type:

None

FindFeaturesInAncestors()
Parameters:
  • S (TopoDS_Shape &) –
  • In (TopoDS_Shape &) –
  • AncInFeatures (TopTools_MapOfShape &) –
Return type:

None

static FindGenerator(*args)
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:

None

static FindShapeContext(*args)
  • 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:

None

Init()
Parameters:
  • US (Handle_TNaming_UsedShapes &) –
  • CurTrans (int) –
Return type:

None

static IsNew(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • NS (Handle_TNaming_NamedShape &) –
Return type:

bool

SubShapes()
Parameters:
  • S (TopoDS_Shape &) –
  • Type (TopAbs_ShapeEnum) –
Return type:

TopTools_MapOfShape

thisown

The membership flag

TNaming_Localizer_FindGenerator(*args)
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • S (TopoDS_Shape &) –
  • theListOfGenerators (TopTools_ListOfShape &) –
Return type:

void

TNaming_Localizer_FindShapeContext(*args)
  • Finds context of the shape <S>.
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • theS (TopoDS_Shape &) –
  • theSC (TopoDS_Shape &) –
Return type:

void

TNaming_Localizer_IsNew(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • NS (Handle_TNaming_NamedShape &) –
Return type:

bool

class TNaming_MapIteratorOfMapOfNamedShape(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Return type:None
Parameters:aMap (TNaming_MapOfNamedShape &) –
Return type:None
Initialize()
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:

None

Return type:

None

Add()
Parameters:aKey (Handle_TNaming_NamedShape &) –
Return type:bool
Assign()
Parameters:Other (TNaming_MapOfNamedShape &) –
Return type:TNaming_MapOfNamedShape
Clear()
Return type:None
Contains()
Parameters:aKey (Handle_TNaming_NamedShape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (int) –
Return type:None
Remove()
Parameters:aKey (Handle_TNaming_NamedShape &) –
Return type:bool
Set()
Parameters:Other (TNaming_MapOfNamedShape &) –
Return type:TNaming_MapOfNamedShape
thisown

The membership flag

class TNaming_Name(*args)

Bases: object

Return type:None
Append()
Parameters:arg (Handle_TNaming_NamedShape &) –
Return type:None
Arguments()
Return type:TNaming_ListOfNamedShape
ContextLabel()
Parameters:theLab (TDF_Label &) –
Return type:None
Return type:TDF_Label
Index()
Parameters:I (int) –
Return type:None
Return type:int
Orientation()
Parameters:theOrientation (TopAbs_Orientation) –
Return type:None
Return type:TopAbs_Orientation
Paste()
Parameters:
  • into (TNaming_Name &) –
  • RT (Handle_TDF_RelocationTable &) –
Return type:

None

Shape()
Parameters:theShape (TopoDS_Shape &) –
Return type:None
Return type:TopoDS_Shape
ShapeType()
Parameters:aType (TopAbs_ShapeEnum) –
Return type:None
Return type:TopAbs_ShapeEnum
Solve()
Parameters:
  • aLab (TDF_Label &) –
  • Valid (TDF_LabelMap &) –
Return type:

bool

StopNamedShape()
Parameters:arg (Handle_TNaming_NamedShape &) –
Return type:None
Return type:Handle_TNaming_NamedShape
Type()
Parameters:aType (TNaming_NameType) –
Return type:None
Return type:TNaming_NameType
thisown

The membership flag

class TNaming_NamedShape(*args)

Bases: OCC.TDF.TDF_Attribute

Return type:None
Clear()
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(*args)
  • class method ============ Returns the GUID for named shapes.
Return type:Standard_GUID
IsEmpty()
Return type:bool
SetVersion()
  • Set the Version of the attribute.
Parameters:version (int) –
Return type:None
Version()
  • Returns the Version of the attribute.
Return type:int
thisown

The membership flag

class TNaming_NamedShapeHasher

Bases: object

static HashCode(*args)
Parameters:
  • K (Handle_TNaming_NamedShape &) –
  • Upper (int) –
Return type:

int

static IsEqual(*args)
Parameters:
  • K1 (Handle_TNaming_NamedShape &) –
  • K2 (Handle_TNaming_NamedShape &) –
Return type:

bool

thisown

The membership flag

TNaming_NamedShapeHasher_HashCode(*args)
Parameters:
  • K (Handle_TNaming_NamedShape &) –
  • Upper (int) –
Return type:

int

TNaming_NamedShapeHasher_IsEqual(*args)
Parameters:
  • K1 (Handle_TNaming_NamedShape &) –
  • K2 (Handle_TNaming_NamedShape &) –
Return type:

bool

TNaming_NamedShape_GetID(*args)
  • 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(*args)
  • following code from TDesignStd ==============================
Return type:Standard_GUID
GetName()
Return type:TNaming_Name
static Insert(*args)
Parameters:under (TDF_Label &) –
Return type:Handle_TNaming_Naming
IsDefined()
Return type:bool
static Name(*args)
  • 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:
  • where (TDF_Label &) –
  • Selection (TopoDS_Shape &) –
  • Context (TopoDS_Shape &) –
  • Geometry (bool) – default value is Standard_False
  • KeepOrientation (bool) – default value is Standard_False
  • BNproblem (bool) – default value is Standard_False
Return type:

Handle_TNaming_NamedShape

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(*args)
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • Labels (TDF_LabelMap &) –
Return type:

void

static CurrentShape(*args)
Parameters:
  • Valid (TDF_LabelMap &) –
  • Forbiden (TDF_LabelMap &) –
  • NS (Handle_TNaming_NamedShape &) –
  • MS (TopTools_MapOfShape &) –
Return type:

void

static CurrentShapeFromShape(*args)
Parameters:
  • Valid (TDF_LabelMap &) –
  • Forbiden (TDF_LabelMap &) –
  • Acces (TDF_Label &) –
  • S (TopoDS_Shape &) –
  • MS (TopTools_MapOfShape &) –
Return type:

void

thisown

The membership flag

TNaming_NamingTool_BuildDescendants(*args)
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • Labels (TDF_LabelMap &) –
Return type:

void

TNaming_NamingTool_CurrentShape(*args)
Parameters:
  • Valid (TDF_LabelMap &) –
  • Forbiden (TDF_LabelMap &) –
  • NS (Handle_TNaming_NamedShape &) –
  • MS (TopTools_MapOfShape &) –
Return type:

void

TNaming_NamingTool_CurrentShapeFromShape(*args)
Parameters:
  • Valid (TDF_LabelMap &) –
  • Forbiden (TDF_LabelMap &) –
  • Acces (TDF_Label &) –
  • S (TopoDS_Shape &) –
  • MS (TopTools_MapOfShape &) –
Return type:

void

TNaming_Naming_GetID(*args)
  • following code from TDesignStd ==============================
Return type:Standard_GUID
TNaming_Naming_Insert(*args)
Parameters:under (TDF_Label &) –
Return type:Handle_TNaming_Naming
TNaming_Naming_Name(*args)
  • 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:
  • where (TDF_Label &) –
  • Selection (TopoDS_Shape &) –
  • Context (TopoDS_Shape &) –
  • Geometry (bool) – default value is Standard_False
  • KeepOrientation (bool) – default value is Standard_False
  • BNproblem (bool) – default value is Standard_False
Return type:

Handle_TNaming_NamedShape

class TNaming_NewShapeIterator(*args)

Bases: object

Parameters:
  • aShape (TopoDS_Shape &) –
  • Transaction (int) –
  • access (TDF_Label &) –
  • aShape
  • access
Return type:

None

Return type:

None

  • 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
Label()
Return type:TDF_Label
More()
Return type:bool
NamedShape()
Return type:Handle_TNaming_NamedShape
Next()
Return type:None
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:

None

Return type:

None

  • 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
Label()
Return type:TDF_Label
More()
Return type:bool
NamedShape()
Return type:Handle_TNaming_NamedShape
Next()
Return type:None
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
FirstUse()
Parameters:aPtr (TNaming_PtrNode &) –
Return type:None
Return type:TNaming_PtrNode
Label()
Return type:TDF_Label
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:

None

Label()
Return type:TDF_Label
More()
Return type:bool
Next()
Return type:None
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
ClearValid()
Return type:None
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
IsValid()
Parameters:L (TDF_Label &) –
Return type:bool
Unvalid()
Parameters:L (TDF_Label &) –
Return type:None
UnvalidChildren()
Parameters:
  • L (TDF_Label &) –
  • withroot (bool) – default value is Standard_True
Return type:

None

Valid()
Parameters:L (TDF_Label &) –
Return type:None
ValidChildren()
Parameters:
  • L (TDF_Label &) –
  • withroot (bool) – default value is Standard_True
Return type:

None

WithValid()
Return type:bool
Parameters:mode (bool) –
Return type:None
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(*args)
  • 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:

bool

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:
  • Selection (TopoDS_Shape &) –
  • Context (TopoDS_Shape &) –
  • Geometry (bool) – default value is Standard_False
  • KeepOrientatation (bool) – default value is Standard_False
Return type:

bool

  • 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:
  • Selection (TopoDS_Shape &) –
  • Geometry (bool) – default value is Standard_False
  • KeepOrientatation (bool) – default value is Standard_False
Return type:

bool

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(*args)
  • 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:

bool

class TNaming_ShapesSet(*args)

Bases: object

Return type:

None

Parameters:
  • S (TopoDS_Shape &) –
  • Type (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
Return type:

None

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
Clear()
  • Removes all Shapes
Return type:None
Contains()
  • Returns True if <S> is in <self>
Parameters:S (TopoDS_Shape &) –
Return type:bool
Filter()
  • Erases in <self> the shapes not contained in <Shapes>
Parameters:Shapes (TNaming_ShapesSet &) –
Return type:None
IsEmpty()
Return type:bool
Map()
Return type:TopTools_MapOfShape
NbShapes()
Return type:int
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:

None

GetHandle()
Key()
Return type:Handle_TNaming_NamedShape
thisown

The membership flag

class TNaming_Tool

Bases: object

static Collect(*args)
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • Labels (TNaming_MapOfNamedShape &) –
  • OnlyModif (bool) – default value is Standard_True
Return type:

void

static CurrentNamedShape(*args)
  • 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:

Handle_TNaming_NamedShape

  • Returns NamedShape the last Modification of <NS>.
Parameters:NS (Handle_TNaming_NamedShape &) –
Return type:Handle_TNaming_NamedShape
static CurrentShape(*args)
  • 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:

TopoDS_Shape

static FindShape(*args)
  • 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(*args)
  • 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:

TopoDS_Shape

static GetShape(*args)
  • 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(*args)
  • Returns True if <aShape> appears under a label.(DP)
Parameters:
  • access (TDF_Label &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

static InitialShape(*args)
  • 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:

TopoDS_Shape

static Label(*args)
  • 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:

TDF_Label

static NamedShape(*args)
  • 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:

Handle_TNaming_NamedShape

static OriginalShape(*args)
  • Returns the shape contained as OldShape in <NS>
Parameters:NS (Handle_TNaming_NamedShape &) –
Return type:TopoDS_Shape
static ValidUntil(*args)
  • Returns the last transaction where the creation of S is valid.
Parameters:
  • access (TDF_Label &) –
  • S (TopoDS_Shape &) –
Return type:

int

thisown

The membership flag

TNaming_Tool_Collect(*args)
Parameters:
  • NS (Handle_TNaming_NamedShape &) –
  • Labels (TNaming_MapOfNamedShape &) –
  • OnlyModif (bool) – default value is Standard_True
Return type:

void

TNaming_Tool_CurrentNamedShape(*args)
  • 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:

Handle_TNaming_NamedShape

  • Returns NamedShape the last Modification of <NS>.
Parameters:NS (Handle_TNaming_NamedShape &) –
Return type:Handle_TNaming_NamedShape
TNaming_Tool_CurrentShape(*args)
  • 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:

TopoDS_Shape

TNaming_Tool_FindShape(*args)
  • 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(*args)
  • 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:

TopoDS_Shape

TNaming_Tool_GetShape(*args)
  • 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(*args)
  • Returns True if <aShape> appears under a label.(DP)
Parameters:
  • access (TDF_Label &) –
  • aShape (TopoDS_Shape &) –
Return type:

bool

TNaming_Tool_InitialShape(*args)
  • 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:

TopoDS_Shape

TNaming_Tool_Label(*args)
  • 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:

TDF_Label

TNaming_Tool_NamedShape(*args)
  • 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:

Handle_TNaming_NamedShape

TNaming_Tool_OriginalShape(*args)
  • Returns the shape contained as OldShape in <NS>
Parameters:NS (Handle_TNaming_NamedShape &) –
Return type:TopoDS_Shape
TNaming_Tool_ValidUntil(*args)
  • Returns the last transaction where the creation of S is valid.
Parameters:
  • access (TDF_Label &) –
  • S (TopoDS_Shape &) –
Return type:

int

class TNaming_TranslateTool(*args, **kwargs)

Bases: OCC.MMgt.MMgt_TShared

Add()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

None

GetHandle()
MakeCompSolid()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeCompound()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeEdge()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeFace()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeShell()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeSolid()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeVertex()
Parameters:S (TopoDS_Shape &) –
Return type:None
MakeWire()
Parameters:S (TopoDS_Shape &) –
Return type:None
UpdateEdge()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:

None

UpdateFace()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:

None

UpdateShape()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

None

UpdateVertex()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • M (TColStd_IndexedDataMapOfTransientTransient &) –
Return type:

None

thisown

The membership flag

class TNaming_Translator(*args)

Bases: object

Return type:None
Add()
Parameters:aShape (TopoDS_Shape &) –
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
DumpMap()
Parameters:isWrite (bool) – default value is Standard_False
Return type:None
IsDone()
Return type:bool
Perform()
Return type:None
thisown

The membership flag

class TNaming_UsedShapes(*args, **kwargs)

Bases: OCC.TDF.TDF_Attribute

Destroy()
Return type:None
DumpToString()

TNaming_UsedShapes_DumpToString(TNaming_UsedShapes self) -> std::string

GetHandle()
static GetID(*args)
  • Returns the ID: 2a96b614-ec8b-11d0-bee7-080009dc3333.
Return type:Standard_GUID
Map()
Return type:TNaming_DataMapOfShapePtrRefShape
thisown

The membership flag

TNaming_UsedShapes_GetID(*args)
  • Returns the ID: 2a96b614-ec8b-11d0-bee7-080009dc3333.
Return type:Standard_GUID
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(*args)
  • Remplace les shapes du label et des sous-labels par des copies.
Parameters:
  • label (TDF_Label &) –
  • M (TopTools_DataMapOfShapeShape &) –
Return type:

void

static Displace(*args)
  • 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(*args)
  • Find unique context of shape <S>
Parameters:
  • S (TopoDS_Shape &) –
  • Context (TopoDS_Shape &) –
Return type:

TopoDS_Shape

static FindUniqueContextSet(*args)
  • 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:

TopoDS_Shape

static IDList(*args)
  • 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(*args)
  • Builds shape from map content
Parameters:MS (TopTools_MapOfShape &) –
Return type:TopoDS_Shape
static OuterShell(*args)
  • 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:

bool

static OuterWire(*args)
  • Returns True if outer wire is found and the found wire in <theWire>.
Parameters:
  • theFace (TopoDS_Face &) –
  • theWire (TopoDS_Wire &) –
Return type:

bool

static Print(*args)
  • 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(*args)
  • 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(*args)
  • 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(*args)
  • Subtitutes shape in source structure
Parameters:
  • accesslabel (TDF_Label &) –
  • From (TopoDS_Shape &) –
  • To (TopoDS_Shape &) –
Return type:

bool

static Transform(*args)
  • 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(*args)
  • 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

tnaming_ChangeShapes(*args)
  • Remplace les shapes du label et des sous-labels par des copies.
Parameters:
  • label (TDF_Label &) –
  • M (TopTools_DataMapOfShapeShape &) –
Return type:

void

tnaming_Displace(*args)
  • 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(*args)
  • Find unique context of shape <S>
Parameters:
  • S (TopoDS_Shape &) –
  • Context (TopoDS_Shape &) –
Return type:

TopoDS_Shape

tnaming_FindUniqueContextSet(*args)
  • 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:

TopoDS_Shape

tnaming_IDList(*args)
  • 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(*args)
  • Builds shape from map content
Parameters:MS (TopTools_MapOfShape &) –
Return type:TopoDS_Shape
tnaming_OuterShell(*args)
  • 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:

bool

tnaming_OuterWire(*args)
  • Returns True if outer wire is found and the found wire in <theWire>.
Parameters:
  • theFace (TopoDS_Face &) –
  • theWire (TopoDS_Wire &) –
Return type:

bool

tnaming_Print(*args)
  • 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(*args)
  • 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(*args)
  • 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(*args)
  • Subtitutes shape in source structure
Parameters:
  • accesslabel (TDF_Label &) –
  • From (TopoDS_Shape &) –
  • To (TopoDS_Shape &) –
Return type:

bool

tnaming_Transform(*args)
  • 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(*args)
  • 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