def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings, space=3, finger=3, surroundingspaces=1) self.buildArgParser(sx="25*3", sy="60*4", sh="5:25:10", bottom_edge="h") self.argparser.add_argument( "--holes", action="store", type=int, default=3, help="Number of holes for each size", ) self.argparser.add_argument( "--firsthole", action="store", type=float, default=1.0, help="Smallest hole", ) self.argparser.add_argument( "--holeincrement", action="store", type=float, default=.5, help="increment between holes", )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.buildArgParser(sx="25*3", sy="60*4", h=60) self.argparser.add_argument( "--holes", action="store", type=int, default=3, help="Number of holes for each size", ) self.argparser.add_argument( "--firsthole", action="store", type=float, default=1.0, help="Smallest hole", ) self.argparser.add_argument( "--holeincrement", action="store", type=float, default=.5, help="increment between holes", )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.addSettingsArgs(edges.StackableSettings) self.buildArgParser(x=100, y=300) self.argparser.add_argument("--canheight", action="store", type=int, default=50, help="Height of the paintcans") self.argparser.add_argument("--candiameter", action="store", type=int, default=30, help="Diameter of the paintcans") self.argparser.add_argument("--minspace", action="store", type=int, default=10, help="Minimum space between the paintcans") self.argparser.add_argument( "--hexpattern", action="store", type=boolarg, default=False, help="Use hexagonal arrangement for the holes instead of orthogonal" )
def __init__(self): Boxes.__init__(self) self.buildArgParser("x", "y", "h") self.argparser.add_argument( "--design", action="store", type=str, default="automatic", choices=("automatic", "widebox", "tuckbox"), help="different design for paper consumption optimization. The tuckbox also has locking cut for its lid.", ) self.argparser.add_argument( "--lid_heigth", type=float, default=15, help="Height of the lid (part which goes inside the box)", ) self.argparser.add_argument( "--lid_radius", type=float, default=7, help="Angle, in radius, of the round corner of the lid", ) self.argparser.add_argument( "--lid_sides", type=float, default=20, help="Width of the two sides upon which goes the lid", ) self.argparser.add_argument( "--margin", type=float, default=0, help="Margin for the glued sides", ) self.argparser.add_argument( "--mark_length", type=float, default=1.5, help="Length of the folding outside mark", ) self.argparser.add_argument( "--tab_angle_rad", type=float, default=math.atan(2 / 25), help="Angle (in radian) of the sides which are to be glued inside the box", ) self.argparser.add_argument( "--finger_hole_diameter", type=float, default=15, help="Diameter of the hole to help catch the lid", )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.buildArgParser(h=30) self.argparser.add_argument( "--cardwidth", action="store", type=float, default=65, help="Width of the cards") self.argparser.add_argument( "--cardheight", action="store", type=float, default=90, help="Height of the cards") self.argparser.add_argument( "--num", action="store", type=int, default=2, help="number of compartments")
def __init__(self, database_dir='database', selected_box_color=(225, 0, 0), unselected_box_color=(0, 255, 0), rate=2): Boxes.__init__(self, rate) self.selected_box = 0 self.set_select_box = 0 self.selected_box_color = selected_box_color self.unselected_box_color = unselected_box_color self.database_dir = database_dir self.set_image(None)
def __init__(self): Boxes.__init__(self) self.argparser.add_argument( "--phone_height", type=float, default=142, help="Height of the phone.", ) self.argparser.add_argument( "--phone_width", type=float, default=73, help="Width of the phone.", ) self.argparser.add_argument( "--phone_depth", type=float, default=11, help=("Depth of the phone. Used by the bottom support holding the " "phone, and the side tabs depth as well. Should be at least " "your material thickness for assembly reasons."), ) self.argparser.add_argument( "--angle", type=float, default=25, help="angle at which the phone stands, in degrees. 0° is vertical.", ) self.argparser.add_argument( "--bottom_margin", type=float, default=30, help="Height of the support below the phone", ) self.argparser.add_argument( "--tab_size", type=float, default=76, help="Length of the tabs holding the phone", ) self.argparser.add_argument( "--bottom_support_spacing", type=float, default=16, help=( "Spacing between the two bottom support. Choose a value big " "enough for the charging cable, without getting in the way of " "other ports."), ) self.addSettingsArgs(edges.FingerJointSettings)
def __init__(self): Boxes.__init__(self) self.buildArgParser(x=250, y=154, h=120) self.argparser.add_argument( "--cornerradius", action="store", type=int, default=30, help="Radius of the corners") self.argparser.add_argument( "--handleheight", action="store", type=int, default=150, help="Height of the handle") self.argparser.add_argument( "--handlewidth", action="store", type=int, default=120, help="Width of the handle")
def __init__(self): Boxes.__init__(self) self.buildArgParser("x", "y", "h") self.argparser.add_argument( "--lid_heigth", type=float, default=15, help="Height of the lid (part which goes inside the box)", ) self.argparser.add_argument( "--lid_radius", type=float, default=7, help="Angle, in radius, of the round corner of the lid", ) self.argparser.add_argument( "--lid_sides", type=float, default=20, help="Width of the two sides upon which goes the lid", ) self.argparser.add_argument( "--margin", type=float, default=0.5, help="Space between the two folded sides to glue", ) self.argparser.add_argument( "--mark_length", type=float, default=1.5, help="Length of the folding outside mark", ) self.argparser.add_argument( "--tab_angle_rad", type=float, default=math.atan(2 / 25), help= "Angle (in radian) of the sides which are to be glued inside the box", ) self.argparser.add_argument( "--finger_hole_diameter", type=float, default=15, help="Diameter of the hole to help catch the lid", )
def __init__(self): Boxes.__init__(self) self.buildArgParser(x=250, y=154, h=120) self.argparser.add_argument("--cornerradius", action="store", type=int, default=30, help="Radius of the corners") self.argparser.add_argument("--handleheight", action="store", type=int, default=150, help="Height of the handle") self.argparser.add_argument("--handlewidth", action="store", type=int, default=120, help="Width of the handle")
def __init__(self): Boxes.__init__(self) self.argparser.add_argument( "--columns", type=int, default=4, help="Number of columns of capsules.", ) self.argparser.add_argument( "--rows", type=int, default=5, help="Number of capsules by columns.", ) self.argparser.add_argument( "--backplate", type=boolarg, default=True, help="True if a backplate should be generated.", )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.addSettingsArgs(edges.StackableSettings) self.buildArgParser(x=100, y=300) self.argparser.add_argument( "--canheight", action="store", type=int, default=50, help="Height of the paintcans") self.argparser.add_argument( "--candiameter", action="store", type=int, default=30, help="Diameter of the paintcans") self.argparser.add_argument( "--minspace", action="store", type=int, default=10, help="Minimum space between the paintcans") self.argparser.add_argument( "--hexpattern", action="store", type=boolarg, default=False, help="Use hexagonal arrangement for the holes instead of orthogonal")
def __init__(self): Boxes.__init__(self) self.buildArgParser("sx", "sy", "h", "outside") self.argparser.add_argument("--slot_depth", type=float, default=20, help="depth of the slot in mm") self.argparser.add_argument( "--slot_angle", type=float, default=0, help= "angle at which slots are generated, in degrees. 0° is vertical.", ) self.argparser.add_argument( "--slot_radius", type=float, default=2, help="radius of the slot entrance in mm", ) self.argparser.add_argument( "--slot_extra_slack", type=float, default=0.2, help= "extra slack (in addition to thickness and kerf) for slot width to help insert dividers", ) self.argparser.add_argument( "--divider_bottom_margin", type=float, default=0, help="margin between box's bottom and divider's", ) self.argparser.add_argument( "--divider_upper_notch_radius", type=float, default=1, help="divider's notch's upper radius", ) self.argparser.add_argument( "--divider_lower_notch_radius", type=float, default=8, help="divider's notch's lower radius", ) self.argparser.add_argument( "--divider_notch_depth", type=float, default=15, help="divider's notch's depth", ) self.argparser.add_argument( "--left_wall", type=boolarg, default=True, help="generate wall on the left side", ) self.argparser.add_argument( "--right_wall", type=boolarg, default=True, help="generate wall on the right side", )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.addSettingsArgs(edges.StackableSettings) self.buildArgParser(x=56, y=85) # count self.argparser.add_argument( "--sbcs", action="store", type=int, default=5, help="how many slots for sbcs", ) # spaces self.argparser.add_argument( "--clearance_x", action="store", type=int, default=3, help="clearance for the board in the box (x) in mm") self.argparser.add_argument( "--clearance_y", action="store", type=int, default=3, help="clearance for the board in the box (y) in mm") self.argparser.add_argument( "--clearance_z", action="store", type=int, default=28, help="SBC Clearance in mm", ) # mounting holes self.argparser.add_argument("--hole_dist_edge", action="store", type=float, default=3.5, help="hole distance from edge in mm") self.argparser.add_argument("--hole_grid_dimension_x", action="store", type=int, default=58, help="width of x hole area") self.argparser.add_argument("--hole_grid_dimension_y", action="store", type=int, default=49, help="width of y hole area") self.argparser.add_argument("--hole_diameter", action="store", type=float, default=2.75, help="hole diameters") # i/o holes self.argparser.add_argument("--netusb_z", action="store", type=int, default=18, help="height of the net/usb hole mm") self.argparser.add_argument("--netusb_x", action="store", type=int, default=53, help="width of the net/usb hole in mm") # features self.argparser.add_argument( "--stable", action='store', type=boolarg, default=False, help= "draw some holes to put a 1/4\" dowel through at the base and top") self.argparser.add_argument( "--switch", action='store', type=boolarg, default=False, help= "adds an additional vertical segment to hold the switch in place, works best w/ --stable" )
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=1.0)
def __init__(self): Boxes.__init__(self) self.addSettingsArgs(edges.FingerJointSettings) self.addSettingsArgs(edges.StackableSettings) self.buildArgParser(x=56, y=85) # count self.argparser.add_argument( "--sbcs", action="store", type=int, default=5, help="how many slots for sbcs", ) # spaces self.argparser.add_argument( "--clearance-x", action="store", type=int, default=3, help="clearance for the board in the box (x) in mm" ) self.argparser.add_argument( "--clearance-y", action="store", type=int, default=3, help="clearance for the board in the box (y) in mm" ) self.argparser.add_argument( "--clearance-z", action="store", type=int, default=28, help="SBC Clearance in mm", ) # mounting holes self.argparser.add_argument( "--hole-dist-edge", action="store", type=decimal.Decimal, default=3.5, help="hole distance from edge in mm" ) self.argparser.add_argument( "--hole-grid-dimension-x", action="store", type=int, default=58, help="width of x hole area" ) self.argparser.add_argument( "--hole-grid-dimension-y", action="store", type=int, default=49, help="width of y hole area" ) self.argparser.add_argument( "--hole-diameter", action="store", type=decimal.Decimal, default=2.75, help="hole diameters" ) # i/o holes self.argparser.add_argument( "--netusb-z", action="store", type=int, default=18, help="height of the net/usb hole mm" ) self.argparser.add_argument( "--netusb-x", action="store", type=int, default=53, help="width of the net/usb hole in mm" ) # features self.argparser.add_argument( "--stable", action='store', type=boolarg, default=False, help="draw some holes to put a 1/4\" dowel through at the base and top" ) self.argparser.add_argument( "--switch", action='store', type=boolarg, default=False, help="adds an additional vertical segment to hold the switch in place, works best w/ --stable" ) # TODO flesh this idea out better self.argparser.add_argument( "--fan", action='store', type=int, required=False, help="ensure that the x width is at least this much and as well, draw a snug holder for a fan someplace" )