### Navigation

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

# pyFormex reference manual

Abstract

This is the reference manual for pyFormex 0.8.6. It describes most of the classes and functions defined in the pyFormex modules. It was built automatically from the pyFormex sources and is therefore the ultimate reference document if you want to look up the precise arguments (and their meaning) of any class constructor or function in pyFormex. The Index and Module Index may be helpful in navigating through this document.

This reference manual describes the classes in functions defined in most of the pyFormex modules. It was built automatically from the docstrings in the pyFormex sources. The pyFormex modules are placed in three paths:

- `pyformex` contains the core functionality, with most of the geometrical transformations, the pyFormex scripting language and utilities,
- `pyformex/gui` contains all the modules that form the interactive graphical user interface,
- `pyformex/plugins` contains extensions that are not considered to be essential parts of pyFormex. They usually provide additional functionality for specific applications.

Some of the modules are loaded automatically when pyFormex is started. Currently this is the case with the modules `coords`, `formex`, `arraytools`, `script` and, if the GUI is used, `draw` and `colors`. All the public definitions in these modules are available to pyFormex scripts without explicitly importing them. Also available is the complete `numpy` namespace, because it is imported by `arraytools`.

The definitions in the other modules can only be accessed using the normal Python `import` statements.

Autoloaded modules

The definitions in these modules are always available to your scripts, without the need to explicitely import them.

- 1. `coords` — A structured collection of 3D coordinates.
- 2. `formex` — Formex algebra in Python
- 3. `arraytools` — A collection of numerical array utilities.
- 4. `script` — Basic pyFormex script functions
- 5. `draw` — Create 3D graphical representations.
- 6. `colors` — Definition of some RGB colors and color conversion functions

Other pyFormex core modules

Together with the autoloaded modules, the following modules located under the main pyformex path are considered to belong to the pyformex core functionality.

- 7. `geometry` — A generic interface to the Coords transformation methods
- 8. `connectivity` — A class and functions for handling nodal connectivity.
- 9. `simple` — Predefined geometries with a simple shape.
- 10. `project` — project.py
- 11. `utils` — A collection of miscellaneous utility functions.
- 12. `elements` — Definition of elements.
- 13. `mesh` — Finite element meshes in pyFormex.

pyFormex GUI modules

These modules are located under pyformex/gui.

- 14. `widgets` — A collection of custom widgets used in the pyFormex GUI
- 15. `menu` — Menus for the pyFormex GUI.
- 16. `colorscale` — Color mapping of a range of values.
- 17. `actors` — OpenGL actors for populating the 3D scene.
- 18. `decors` — 2D decorations for the OpenGL canvas.
- 19. `marks` — OpenGL marks for annotating 3D actors.
- 20. `gluttext` — 2D text decorations using GLUT fonts
- 21. `canvas` — This implements an OpenGL drawing widget for painting 3D scenes.
- 22. `viewport` — Interactive OpenGL Canvas embedded in a Qt4 widget.
- 23. `camera` — OpenGL camera handling
- 24. `image` — Saving OpenGL renderings to image files.
- 25. `imagearray` — Convert bitmap images into numpy arrays.
- 26. `imagecolor` — Using bitmap images as colors.
- 27. `imageViewer` — A general image viewer
- 28. `scriptMenu` — Menu with pyFormex scripts.
- 29. `toolbar` — Toolbars for the pyFormex GUI.

pyFormex plugins

Plugin modules extend the basic pyFormex functions to variety of specific applications. Apart from being located under the pyformex/plugins path, these modules are in no way different from other pyFormex modules.

- 30. `curve` — Definition of curves in pyFormex.
- 31. `mesh_ext` — Extended functionality of the Mesh class.
- 32. `trisurface` — Operations on triangulated surfaces.
- 33. `geomtools` — Basic geometrical operations.
- 34. `nurbs` — Using NURBS in pyFormex.
- 35. `isopar` — Isoparametric transformations
- 36. `section2d` — Some functions operating on 2D structures.
- 37. `inertia` — inertia.py
- 38. `units` — A Python wrapper for unit conversion of physical quantities.
- 39. `datareader` — Numerical data reader
- 40. `properties` — General framework for attributing properties to geometrical elements.
- 41. `fe` — Finite Element Models in pyFormex.
- 42. `fe_abq` — Exporting finite element models in Abaqus™ input file format.
- 43. `fe_post` — A postprocessor for ABAQUS output files.
- 44. `postproc` — Postprocessing functions
- 45. `flavia` —
- 46. `lima` — Lindenmayer Systems
- 47. `turtle` — Turtle graphics for pyFormex
- 48. `dxf` — Read/write geometry in DXF format.
- 49. `export` — Classes and functions for exporting geometry in various formats.
- 50. `tetgen` — Interface with tetgen
- 51. `tools` — tools.py
- 52. `objects` — Selection of objects from the global dictionary.
- 53. `plot2d` — plot2d.py

pyFormex tools

The main pyformex path contains a number of modules that are not considered to be part of the pyFormex core, but are rather tools that were used in the implementation of other modules, but can also be useful elsewhere.

- 54. `olist` — Some convenient shortcuts for common list operations.
- 55. `mydict` —
- 56. `odict` — Specialized dictionary type structures.
- 57. `collection` — Tools for handling collections of elements belonging to multiple parts.
- 58. `config` — A general yet simple configuration class.
- 59. `flatkeydb` — Flat Text File Database.
- 60. `sendmail` — sendmail.py: a simple program to send an email message
- 61. `timer` — A timer class.

### Navigation

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