Esempio n. 1
0
 def _calcDoorGasketSlices(self):
     """Раситать нарезку прижимной рамки на створку"""
     vertical = self.DOOR_H - self.DOOR_TUBE_SIZES[1] * 2
     horizontal = self.DOOR_W - self.DOOR_TUBE_SIZES[1] * 2
     addToSlicesDict(self.slices, self.data['Прижимная рамка'], vertical, 2)
     addToSlicesDict(self.slices, self.data['Прижимная рамка'], horizontal,
                     3)
Esempio n. 2
0
 def _calcStripeSlices(self):
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_H, 2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_W, 2)
     addToSlicesDict(self.slices, self.data['Полоса2'], self.FRAME_H, 2)
     addToSlicesDict(self.slices, self.data['Полоса2'], self.FRAME_W, 1)
     strip_size = parseTube(self.data['Полоса2'])[0]
     addToSlicesDict(self.slices, self.data['Полоса2'],
                     self.FRAME_W - strip_size * 2, 1)
Esempio n. 3
0
 def _calcStripeSlices(self):
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_H + 20, 2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_W + 20 * 2,
                     2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.FRAME_W, 2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.BRIDGE_H - 15,
                     2)
Esempio n. 4
0
 def _calcDoorSlices(self):
     """Расчитать нарезку на створку"""
     addToSlicesDict(self.slices, self.data['Створка'], self.DOOR_W, 2)
     addToSlicesDict(self.slices, self.data['Створка'], self.DOOR_H, 2)
Esempio n. 5
0
 def _calcStripeSlices(self):
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_H, 2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_W, 2)
     addToSlicesDict(self.slices, self.data['Полоса2'], self.FRAME_H, 2)
     addToSlicesDict(self.slices, self.data['Полоса2'], self.FRAME_W, 1)
Esempio n. 6
0
 def _calcStripeSlices(self):
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_H + 20, 2)
     addToSlicesDict(self.slices, self.data['Полоса'], self.DOOR_W + 20 * 2,
                     2)
Esempio n. 7
0
 def _calcFrameSlices(self):
     addToSlicesDict(self.slices, self.data['Рама'], self.FRAME_H, 2)
     addToSlicesDict(self.slices, self.data['Рама'], self.FRAME_W, 1)
Esempio n. 8
0
 def _calcBridgeGasketSlices(self):
     addToSlicesDict(self.slices, self.data['Прижимная рамка'],
                     self.BRIDGE_H - self.FRAME_TUBE_SIZES[1] * 2, 2)
     addToSlicesDict(self.slices, self.data['Прижимная рамка'],
                     self.FRAME_W - self.FRAME_TUBE_SIZES[1] * 2, 2)
Esempio n. 9
0
    def _calcFrameSlices(self):
        addToSlicesDict(self.slices, self.data['Рама'], self.FRAME_H, 2)
        addToSlicesDict(self.slices, self.data['Рама'], self.FRAME_W, 1)

        addToSlicesDict(self.slices, self.data['Рама'],
                        self.FRAME_W - self.FRAME_TUBE_SIZES[0] * 2, 1)