tools.py
Graphic Tools for pyFormex.
Plane objects have the following methods:
Functions defined in the module tools
- tools.report(K)¶
- tools.reportActors(K)¶
- tools.reportElements(K)¶
- tools.reportPoints(K)¶
- tools.reportEdges(K)¶
- tools.reportPartitions(K)¶
- tools.reportDistances(K)¶
- tools.reportAngles(K)¶
- tools.getObjectItems(obj, items, mode)¶
- Get the specified items from object.
- tools.getCollection(K)¶
- Returns a collection.
- tools.growCollection(K)¶
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.