def draw_tool(self): voxelcut.drawclear() index = self.current_line_index - 1 if index < 0: index = 0 tool_number = self.lines[index].tool_number if tool_number in self.tools: x, y, z = self.coords.mm_to_voxels(self.current_point.x, self.current_point.y, self.current_point.z) self.tools[tool_number].draw(x, y, z)
def draw_tool(self): voxelcut.drawclear() index = self.current_line_index if index < 0: index = 0 if index >= len(self.lines): return tool_number = self.lines[index].tool_number rapid = self.lines[index].rapid if tool_number in self.tools: x, y, z = self.coords.mm_to_voxels(self.current_point.x, self.current_point.y, self.current_point.z) self.tools[tool_number].draw(x, y, z, rapid)