| 113 | |
| 114 | |
| 115 | def usage(): |
| 116 | msg = """usage: vtk2xml.py [options] vtk_file1 vtk_file2 ...\n |
| 117 | This program converts VTK's old file format to the new XML format. |
| 118 | |
| 119 | The default mode is to store the data as appended (compressed and |
| 120 | base64 encoded). Change this behaviour with the provided options. |
| 121 | This code requires VTK 4.x or above to run. |
| 122 | |
| 123 | options: |
| 124 | -h, --help Show this help message and exit. |
| 125 | |
| 126 | -b, --binary Store data as binary (compressed and base64 encoded). |
| 127 | |
| 128 | -a, --ascii Store data as ascii. |
| 129 | |
| 130 | -n, --no-encode Do not base64 encode the data. This violates the |
| 131 | XML specification but makes reading and writing fast |
| 132 | and files smaller. |
| 133 | |
| 134 | -d, --output-dir <directory> |
| 135 | Output directory where the files should be generated. |
| 136 | Defaults to the same directory as the input file. |
| 137 | """ |
| 138 | return msg |
| 139 | |
| 140 | |
| 141 | def main(): |