- working on data structures (offset, offset_value, job_type, shape) and on the Tools Database
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user