Commit 6ff52716 authored by sumpfralle's avatar sumpfralle

fixed a small bug of the migration to the new GCodeGenerator

more verbose output of the DXFImporter


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@635 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f19ba7d6
...@@ -111,7 +111,7 @@ class GCodeGenerator: ...@@ -111,7 +111,7 @@ class GCodeGenerator:
# move straight up to safety height # move straight up to safety height
self.append(self.gcode.safety()) self.append(self.gcode.safety())
for path in paths: for path in paths:
self.add_path(path) self.add_path(path, max_skip_safety_distance=max_skip_safety_distance)
# go back to safety height # go back to safety height
self.append(self.gcode.safety()) self.append(self.gcode.safety())
if self.toggle_spindle_status: if self.toggle_spindle_status:
......
...@@ -229,7 +229,8 @@ def import_model(filename, program_locations=None, unit=None): ...@@ -229,7 +229,8 @@ def import_model(filename, program_locations=None, unit=None):
# pstoedit uses inch internally - we need to scale # pstoedit uses inch internally - we need to scale
log.info("DXFImporter: scaling model from inch to mm") log.info("DXFImporter: scaling model from inch to mm")
model.scale(25.4) model.scale(25.4)
log.info("DXFImporter: Imported DXF model: %d lines" % len(lines)) log.info("DXFImporter: Imported DXF model: %d lines / %d polygons" \
% (len(lines), len(model.get_polygons())))
return model return model
else: else:
log.error("DXFImporter: No supported elements found in DXF file!") log.error("DXFImporter: No supported elements found in DXF file!")
......
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