Commit 1706b528 authored by sumpfralle's avatar sumpfralle

added support for EPS/PS contour files


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@802 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 35d040a2
Version 0.4.1 - UNRELEASED
* added support for EPS/PS contour files
Version 0.4 - 2010-10-19 Version 0.4 - 2010-10-19
* use all available CPU cores for parallel processing * use all available CPU cores for parallel processing
* this requires at least Python 2.6 or the "python-multiprocessing" package * this requires at least Python 2.6 or the "python-multiprocessing" package
......
...@@ -69,9 +69,10 @@ GTKMENU_FILE = "menubar.xml" ...@@ -69,9 +69,10 @@ GTKMENU_FILE = "menubar.xml"
HELP_WIKI_URL = "http://sourceforge.net/apps/mediawiki/pycam/index.php?title=%s" HELP_WIKI_URL = "http://sourceforge.net/apps/mediawiki/pycam/index.php?title=%s"
FILTER_GCODE = (("GCode files", ("*.ngc", "*.nc", "*.gc", "*.gcode")),) FILTER_GCODE = (("GCode files", ("*.ngc", "*.nc", "*.gc", "*.gcode")),)
FILTER_MODEL = (("All supported model filetypes", ("*.stl", "*.dxf", "*.svg")), FILTER_MODEL = (("All supported model filetypes",
("*.stl", "*.dxf", "*.svg", "*.eps", "*.ps")),
("STL models", "*.stl"), ("DXF contours", "*.dxf"), ("STL models", "*.stl"), ("DXF contours", "*.dxf"),
("SVG contours", "*.svg")) ("SVG contours", "*.svg"), ("PS contours", ("*.eps", "*.ps")))
FILTER_CONFIG = (("Config files", "*.conf"),) FILTER_CONFIG = (("Config files", "*.conf"),)
FILTER_EMC_TOOL = (("EMC tool files", "*.tbl"),) FILTER_EMC_TOOL = (("EMC tool files", "*.tbl"),)
......
...@@ -27,6 +27,7 @@ import pycam.Utils.log ...@@ -27,6 +27,7 @@ import pycam.Utils.log
import pycam.Importers.DXFImporter import pycam.Importers.DXFImporter
import pycam.Importers.STLImporter import pycam.Importers.STLImporter
import pycam.Importers.SVGImporter import pycam.Importers.SVGImporter
import pycam.Importers.PSImporter
import os import os
...@@ -46,8 +47,12 @@ def detect_file_type(filename): ...@@ -46,8 +47,12 @@ def detect_file_type(filename):
return ("dxf", pycam.Importers.DXFImporter.import_model) return ("dxf", pycam.Importers.DXFImporter.import_model)
elif filename.lower().endswith(".svg"): elif filename.lower().endswith(".svg"):
return ("svg", pycam.Importers.SVGImporter.import_model) return ("svg", pycam.Importers.SVGImporter.import_model)
elif filename.lower().endswith(".eps") \
or filename.lower().endswith(".ps"):
return ("ps", pycam.Importers.PSImporter.import_model)
else: else:
log.error("Importers: Failed to detect the model type of '%s'." \ log.error(("Importers: Failed to detect the model type of '%s'. " \
% filename + " Is the file extension (stl/dxf/svg) correct?") + "Is the file extension (stl/dxf/svg/eps/ps) correct?") \
% filename)
return failure return failure
...@@ -22,5 +22,5 @@ along with PyCAM. If not, see <http://www.gnu.org/licenses/>. ...@@ -22,5 +22,5 @@ along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
__all__=["Cutters","Exporters","Geometry","Gui","Importers","PathGenerators","PathProcessors","Utils"] __all__=["Cutters","Exporters","Geometry","Gui","Importers","PathGenerators","PathProcessors","Utils"]
VERSION = "0.4" VERSION = "0.4.1-svn"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment