- working on data structures (offset, offset_value, job_type, shape) and on the Tools Database

This commit is contained in:
Marius Stanciu
2021-07-07 02:30:27 +03:00
committed by Marius
parent 4e46eac61c
commit 368413e6d2
7 changed files with 51 additions and 51 deletions

View File

@@ -3576,11 +3576,11 @@ class CNCjob(Geometry):
p = self.pp_geometry
# Offset the Geometry if it is the case
if tool_dict['tools_mill_offset'] == 1: # 'in'
if tool_dict['tools_mill_offset_type'] == 1: # 'in'
tool_offset = -float(tool_dict['tools_mill_tooldia']) / 2.0
elif tool_dict['tools_mill_offset'] == 2: # 'out'
elif tool_dict['tools_mill_offset_type'] == 2: # 'out'
tool_offset = float(tool_dict['tools_mill_tooldia']) / 2.0
elif tool_dict['tools_mill_offset'] == 3: # 'custom'
elif tool_dict['tools_mill_offset_type'] == 3: # 'custom'
tool_offset = tool_dict['tools_mill_offset_value']
else:
tool_offset = 0.0