scallop dome pyformex logo

Previous topic

61. tetgen — Interface with tetgen

Next topic

63. trisurface — Operations on triangulated surfaces.

[FSF Associate Member]

Valid XHTML 1.0 Transitional

62. 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 should work on any objects that have a growSelection method.

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.