51. tools — tools.py — pyFormex v0.8.6 documentation

### Navigation

- index
- modules |
- next |
- previous |
- pyFormex v0.8.6 documentation >
- pyFormex reference manual >

# 51. `tools` — tools.py

Graphic Tools for pyFormex.

`Classes defined in module tools`

`Functions defined in module tools`

`tools.` `getObjectItems`(obj, items, mode)

  Get the specified items from object.

`tools.` `getCollection`(K)

  Returns a collection.

`tools.` `growCollection`(K, **kargs)

  Grow the collection with n frontal rings.

  K should be a collection of elements. This currently only works on surfaces. Objects that do not have a nodeFront() generator function are

`tools.` `partitionCollection`(K)

  Partition the collection according to node adjacency.

  The actor numbers will be connected to a collection of property numbers, e.g. 0 [1 [4,12] 2 [6,20]], where 0 is the actor number, 1 and 2 are the property numbers and 4, 12, 6 and 20 are the element numbers.

`tools.` `getPartition`(K, prop)

  Remove all partitions with property not in prop.

`tools.` `exportObjects`(obj, name, single=False)

  Export a list of objects under the given name.

  If obj is a list, and single=True, each element of the list is exported as a single item. The items will be given the names name-0, name-1, etc. Else, the obj is exported as is under the name.

### Navigation

- index
- modules |
- next |
- previous |
- pyFormex v0.8.6 documentation >
- pyFormex reference manual >