コード例 #1
0
ファイル: Toolpath.py プロジェクト: danheeks/voxelcut
 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)
コード例 #2
0
    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)
コード例 #3
0
ファイル: Toolpath.py プロジェクト: AlanZheng/heekscnc
 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)
コード例 #4
0
    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)