skeinforge_tools.import_translator ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/import_translator.py |
Import translator is a script to access and display the import plugins.
Import shows the client which import plugins are in the import_plugins folder. If "Translate" is clicked, the chosen file will be
translated and saved as a GNU Triangulated Surface format file.
An import plugin is a script in the import_plugins folder which has the function getTriangleMesh.
The following examples import the files Hollow Square.stl. The examples are run in a terminal in the folder which contains
Hollow Square.stl & import_translator.py.
> python import_translator.py
This brings up the dialog, after clicking 'Translate', the following is printed:
File Hollow Square.stl is being translated to the GNU Triangulated Surface format.'
The translated file is saved as Hollow Square.gts
It took 0 seconds to translate the file.
> python import_translator.py Hollow Square.stl
File Hollow Square.stl is being translated to the GNU Triangulated Surface format.
The translated file is saved as Hollow Square.gts
It took 0 seconds to translate the file.
> python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import import
>>> import.writeOutput()
File Hollow Square.stl is being translated to the GNU Triangulated Surface format.
The translated file is saved as Hollow Square.gts
It took 0 seconds to translate the file.
>>> import.main()
This brings up the import dialog.
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|
Data | ||
__author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) |
Author | ||
Enrique Perez (perez_enrique@yahoo.com) |