Commit 5a126a16 authored by sumpfralle's avatar sumpfralle

EMC uses a diameter instead of the radius


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@280 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 36c8141e
...@@ -12,7 +12,7 @@ class EMCToolExporter: ...@@ -12,7 +12,7 @@ class EMCToolExporter:
tool = self.tools[index] tool = self.tools[index]
# use an arbitrary length # use an arbitrary length
tool_length = tool["tool_radius"] * 10 tool_length = tool["tool_radius"] * 10
line = "T%d P%d D%f Z-%f ;%s" % (index + 1, index + 1, tool["tool_radius"], tool_length, tool["name"]) line = "T%d P%d D%f Z-%f ;%s" % (index + 1, index + 1, 2 * tool["tool_radius"], tool_length, tool["name"])
result.append(line) result.append(line)
# add the dummy line for the "last" tool # add the dummy line for the "last" tool
result.append("T99999 P99999 Z+0.100000 ;dummy tool") result.append("T99999 P99999 Z+0.100000 ;dummy tool")
......
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