OCC.TopLoc module

class OCC.TopLoc.Handle_TopLoc_Datum3D(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.TopLoc.Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopLoc.Handle_TopLoc_SListNodeOfSListOfItemLocation(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.TopLoc.Handle_TopLoc_StdMapNodeOfMapOfLocation(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopLoc.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.TopLoc.TopLoc_Datum3D(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

TopLoc_Datum3D_GetHandle(TopLoc_Datum3D self) -> Handle_TopLoc_Datum3D

ShallowDumpToString()

TopLoc_Datum3D_ShallowDumpToString(TopLoc_Datum3D self) -> std::string

Transformation()
  • Returns a gp_Trsf which, when applied to this datum, produces the default datum.
Return type:gp_Trsf
thisown

The membership flag

class OCC.TopLoc.TopLoc_IndexedMapNodeOfIndexedMapOfLocation(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopLoc_IndexedMapNodeOfIndexedMapOfLocation_GetHandle(TopLoc_IndexedMapNodeOfIndexedMapOfLocation self) -> Handle_TopLoc_IndexedMapNodeOfIndexedMapOfLocation

GetKey2()

TopLoc_IndexedMapNodeOfIndexedMapOfLocation_GetKey2(TopLoc_IndexedMapNodeOfIndexedMapOfLocation self) -> Standard_Integer

Key1()
Return type:TopLoc_Location
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

TopLoc_IndexedMapNodeOfIndexedMapOfLocation_SetKey2(TopLoc_IndexedMapNodeOfIndexedMapOfLocation self, Standard_Integer value)

thisown

The membership flag

class OCC.TopLoc.TopLoc_IndexedMapOfLocation(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:K (TopLoc_Location &) –
Return type:int
Assign()
Parameters:Other (TopLoc_IndexedMapOfLocation &) –
Return type:TopLoc_IndexedMapOfLocation
Clear()
Return type:None
Contains()
Parameters:K (TopLoc_Location &) –
Return type:bool
FindIndex()
Parameters:K (TopLoc_Location &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:TopLoc_Location
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (TopLoc_IndexedMapOfLocation &) –
Return type:TopLoc_IndexedMapOfLocation
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (TopLoc_Location &) –
Return type:

None

thisown

The membership flag

class OCC.TopLoc.TopLoc_ItemLocation(*args)

Bases: object

Assign()
Parameters:anOther (TopLoc_ItemLocation &) –
Return type:TopLoc_ItemLocation
Destroy()
Return type:None
Set()
Parameters:anOther (TopLoc_ItemLocation &) –
Return type:TopLoc_ItemLocation
thisown

The membership flag

class OCC.TopLoc.TopLoc_Location(*args)

Bases: object

Divided()
  • Returns <self> / <Other>.
Parameters:Other (TopLoc_Location &) –
Return type:TopLoc_Location
FirstDatum()
  • Returns the first elementary datum of the Location. Use the NextLocation function recursively to access the other data comprising this location. Exceptions Standard_NoSuchObject if this location is empty.
Return type:Handle_TopLoc_Datum3D
FirstPower()
  • Returns the power elevation of the first elementary datum. Exceptions Standard_NoSuchObject if this location is empty.
Return type:int
HashCode()
  • Returns a hashed value for this local coordinate system. This value is used, with map tables, to store and retrieve the object easily, and is in the range [ 1..Upper ].
Parameters:Upper (Standard_Integer) –
Return type:int
Identity()
  • Resets this location to the Identity transformation.
Return type:None
Inverted()
  • Returns the inverse of <self>. <self> * Inverted() is an Identity.
Return type:TopLoc_Location
IsDifferent()
  • Returns true if this location and the location Other do not have the same elementary data, i.e. do not contain the same series of TopLoc_Datum3D and respective powers. This method is an alias for operator !=.
Parameters:Other (TopLoc_Location &) –
Return type:bool
IsEqual()
  • Returns true if this location and the location Other have the same elementary data, i.e. contain the same series of TopLoc_Datum3D and respective powers. This method is an alias for operator ==.
Parameters:Other (TopLoc_Location &) –
Return type:bool
IsIdentity()
  • Returns true if this location is equal to the Identity transformation.
Return type:bool
Multiplied()
  • Returns <self> * <Other>, the elementary datums are concatenated.
Parameters:Other (TopLoc_Location &) –
Return type:TopLoc_Location
NextLocation()
  • Returns a Location representing <self> without the first datum. We have the relation : <self> = NextLocation() * FirstDatum() ^ FirstPower() Exceptions Standard_NoSuchObject if this location is empty.
Return type:TopLoc_Location
Powered()
  • Returns me at the power <pwr>. If <pwr> is zero returns Identity. <pwr> can be lower than zero (usual meaning for powers).
Parameters:pwr (Standard_Integer) –
Return type:TopLoc_Location
Predivided()
  • Returns <Other>.Inverted() * <self>.
Parameters:Other (TopLoc_Location &) –
Return type:TopLoc_Location
ShallowDumpToString()

TopLoc_Location_ShallowDumpToString(TopLoc_Location self) -> std::string

Transformation()
  • Returns the transformation associated to the coordinate system.
Return type:gp_Trsf
thisown

The membership flag

class OCC.TopLoc.TopLoc_MapIteratorOfMapOfLocation(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (TopLoc_MapOfLocation &) –
Return type:None
Key()
Return type:TopLoc_Location
thisown

The membership flag

class OCC.TopLoc.TopLoc_MapLocationHasher(*args, **kwargs)

Bases: object

static HashCode(*args)
Parameters:
  • K (TopLoc_Location &) –
  • Upper (Standard_Integer) –
Return type:

int

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

bool

thisown

The membership flag

OCC.TopLoc.TopLoc_MapLocationHasher_HashCode(*args)
Parameters:
  • K (TopLoc_Location &) –
  • Upper (Standard_Integer) –
Return type:

int

OCC.TopLoc.TopLoc_MapLocationHasher_IsEqual(*args)
Parameters:
  • K1 (TopLoc_Location &) –
  • K2 (TopLoc_Location &) –
Return type:

bool

class OCC.TopLoc.TopLoc_MapOfLocation(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:aKey (TopLoc_Location &) –
Return type:bool
Assign()
Parameters:Other (TopLoc_MapOfLocation &) –
Return type:TopLoc_MapOfLocation
Clear()
Return type:None
Contains()
Parameters:aKey (TopLoc_Location &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Remove()
Parameters:aKey (TopLoc_Location &) –
Return type:bool
Set()
Parameters:Other (TopLoc_MapOfLocation &) –
Return type:TopLoc_MapOfLocation
thisown

The membership flag

class OCC.TopLoc.TopLoc_SListNodeOfSListOfItemLocation(*args)

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

TopLoc_SListNodeOfSListOfItemLocation_GetHandle(TopLoc_SListNodeOfSListOfItemLocation self) -> Handle_TopLoc_SListNodeOfSListOfItemLocation

Tail()
Return type:TopLoc_SListOfItemLocation
Value()
Return type:TopLoc_ItemLocation
thisown

The membership flag

class OCC.TopLoc.TopLoc_SListOfItemLocation(*args)

Bases: object

Assign()
Parameters:Other (TopLoc_SListOfItemLocation &) –
Return type:TopLoc_SListOfItemLocation
ChangeTail()
Return type:TopLoc_SListOfItemLocation
ChangeValue()
Return type:TopLoc_ItemLocation
Clear()
Return type:None
Construct()
Parameters:anItem (TopLoc_ItemLocation &) –
Return type:None
Constructed()
Parameters:anItem (TopLoc_ItemLocation &) –
Return type:TopLoc_SListOfItemLocation
Initialize()
Parameters:aList (TopLoc_SListOfItemLocation &) –
Return type:None
IsEmpty()
Return type:bool
More()
Return type:bool
Next()
Return type:None
Set()
Parameters:Other (TopLoc_SListOfItemLocation &) –
Return type:TopLoc_SListOfItemLocation
SetTail()
Parameters:aList (TopLoc_SListOfItemLocation &) –
Return type:None
SetValue()
Parameters:anItem (TopLoc_ItemLocation &) –
Return type:None
Tail()
Return type:TopLoc_SListOfItemLocation
ToTail()
Return type:None
Value()
Return type:TopLoc_ItemLocation
thisown

The membership flag

class OCC.TopLoc.TopLoc_StdMapNodeOfMapOfLocation(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopLoc_StdMapNodeOfMapOfLocation_GetHandle(TopLoc_StdMapNodeOfMapOfLocation self) -> Handle_TopLoc_StdMapNodeOfMapOfLocation

Key()
Return type:TopLoc_Location
thisown

The membership flag