added rpi5 cases

This commit is contained in:
Edward Kisiel
2023-11-04 15:52:38 -04:00
parent 501da93cad
commit 7eab4fe790
5 changed files with 584 additions and 14 deletions

View File

@@ -16532,6 +16532,519 @@
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_shell": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_shell",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "shell",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "punchout",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "true",
"sidethick": "0",
"sidewall_support": "true",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_panel": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_panel",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "panel",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "punchout",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "0",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_stacked": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_stacked",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "stacked",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "none",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "true",
"sidethick": "0",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_tray": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_tray",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "tray",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "4",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "2",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "punchout",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "0",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_tray_sides": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_tray_sides",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "tray",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "4",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "sides",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "2",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "punchout",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "2",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_round": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_round",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "0",
"case_design": "round",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "none",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "1",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 20, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "3"
},
"rpi5_noheatsink_hex": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_hex",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "0",
"case_design": "hex",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "fan",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1.5",
"gpio_opening": "none",
"indents": "false",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "1",
"sidewall_support": "false",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 20, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "3"
},
"rpi5_noheatsink_snap": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_snap",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "snap",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "none",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1",
"gpio_opening": "punchout",
"indents": "true",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "1",
"sidewall_support": "true",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 20, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rpi5_noheatsink_fitted": {
"$fn": "90",
"accessory_highlight": "false",
"accessory_name": "rpi5_noheatsink_fitted",
"adjust": "0.01",
"bottom_ext_standoff": "[6.25, 5, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"bottom_front_left": "0",
"bottom_front_right": "0",
"bottom_rear_left": "0",
"bottom_rear_right": "0",
"bottom_standoff": "[6.25, 7, 3.6, 10, 4, 1, 0, 0, 0, 4.5, 5.1]",
"c_fillet": "3.5",
"case_design": "fitted",
"case_ext_standoffs": "false",
"case_ffn": "90",
"case_fn": "360",
"case_offset_bz": "0",
"case_offset_tz": "0",
"case_offset_x": "0",
"case_offset_y": "0",
"case_style": "none",
"cooling": "none",
"exhaust_vents": "none",
"fillet": "0",
"floorthick": "2",
"gap": "1",
"gpio_opening": "punchout",
"indents": "true",
"lip": "5",
"lower_bottom": "0",
"move_front": "0",
"move_leftside": "0",
"move_rear": "0",
"move_rightside": "0",
"pcb_loc_x": "0",
"pcb_loc_y": "0",
"pcb_loc_z": "0",
"raise_top": "0",
"sata_punchout": "false",
"sbc_bottom_standoffs": "true",
"sbc_highlight": "false",
"sbc_model": "rpi5_noheatsink",
"sbc_off": "false",
"sbc_top_standoffs": "false",
"sidethick": "1",
"sidewall_support": "true",
"tol": "0.25",
"top_ext_standoff": "[6.25, 18, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"top_front_left": "0",
"top_front_right": "0",
"top_rear_left": "0",
"top_rear_right": "0",
"top_standoff": "[6.25, 20, 2.5, 10, 4, 4, 0, 1, 0, 4.5, 5.1]",
"view": "model",
"vu_rotation": "[15, 0, 0]",
"wallthick": "2"
},
"rock4b+_shell": {
"$fn": "90",
"accessory_highlight": "false",

File diff suppressed because one or more lines are too long

View File

@@ -52,6 +52,13 @@
accessory_data = [
["none"],
// hk uart group
["hk_uart",
"add2","uart_holder",-25,0,1.9,"bottom",[0,0,0],["sbc",true,false,false],10,10,0,0,0,"",0, // add uart holder
"model","hk_uart",-22.5,23,5,"bottom",[0,0,-90],["sbc",true,false,false],10,10,0,0,0,"",0, // add uart model
"model","uart_strap",-25,0,2,"bottom",[0,0,0],["sbc",true,false,false],0,0,0,0,0,"",0,
"platter","uart_strap",-35,75,-9,"bottom",[0,0,0],["case",false,false,false],0,0,0,0,0,"",0], // hk uart strap
// Odroid-C1+
["c1+_shell_boombox",
"add2","pcb_holder",.75,51.1,1.99,"bottom",[0,0,0],["case",false,true,false],123.5,35,1.6,2,0,"none",0, // add pcb holder
@@ -1272,6 +1279,37 @@ accessory_data = [
["rpi4b_fitted",
"sub","fan",10,10,25.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_shell",
"sub","fan",10,10,24.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_panel",
"sub","fan",10,10,24.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_stacked",
"sub","fan",10,10,24.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_tray",
"sub","fan",10,10,24.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_tray_sides",
"sub","fan",10,10,25.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_round",
"suball","rectangle",4.5,-26,5.5,"top",[0,0,0],["case",false,false,false],11,20,8,0,0,"vertical",[1,1,1,1], // sub hdmi opening
"suball","rectangle",21.5,-26,4,"top",[0,0,0],["case",false,false,false],21,10,15.5,0,0,"vertical",[1,1,1,1], // sub hdmi opening
"sub","fan",10,10,24.5,"top",[0,0,0],["case",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_hex",
"suball","rectangle",4.5,-20,5.5,"top",[0,0,0],["case",false,false,false],11,20,8,0,0,"vertical",[1,1,1,1], // sub hdmi opening
"suball","rectangle",21.5,-26,4,"top",[0,0,0],["case",false,false,false],21,20,15.5,0,0,"vertical",[1,1,1,1], // sub hdmi opening
"sub","fan",10,10,24.5,"top",[0,0,0],["case",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_snap",
"sub","fan",10,10,24.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
["rpi5_noheatsink_fitted",
"sub","fan",10,10,25.5,"top",[0,0,0],["sbc-case_z",true,true,true],40,0,6,2,0,"",0], // sub fan opening
// Radxa
["rock4b+_shell",
"sub","fan",10,10,0,"bottom",[0,0,0],["sbc",true,true,false],40,0,6,2,0,"",0], // sub fan opening
@@ -1884,13 +1922,6 @@ accessory_data = [
"sub","rectangle",27,20,25,"top",[0,0,0],["sbc-case_z",true,true,true],43,43,6,0,0,"horizontal",[.25,.25,.25,.25], // sub rectangle
"add1","access_port",10,0,-0.01,"bottom",[0,0,0],["sbc",true,true,false],80,75,2,0,0,"portrait",0, // access port
"model","access_cover",10,0,-0.01,"bottom",[0,0,0],["sbc",true,true,false],80,75,2,0,0,"portrait",0, // model access port cover
"platter","access_cover",-110,30,0,"bottom",[0,0,0],["case",false,false,false],80,75,2,0,0,"portrait",0], // platter access port cover
// hk uart group
["hk_uart",
"add2","uart_holder",-25,0,1.9,"bottom",[0,0,0],["sbc",true,false,false],10,10,0,0,0,"",0, // add uart holder
"model","hk_uart",-22.5,23,5,"bottom",[0,0,-90],["sbc",true,false,false],10,10,0,0,0,"",0, // add uart model
"model","uart_strap",-25,0,2,"bottom",[0,0,0],["sbc",true,false,false],0,0,0,0,0,"",0,
"platter","uart_strap",-35,75,-9,"bottom",[0,0,0],["case",false,false,false],0,0,0,0,0,"",0] // hk uart strap
"platter","access_cover",-110,30,0,"bottom",[0,0,0],["case",false,false,false],80,75,2,0,0,"portrait",0] // platter access port cover
];

View File

@@ -3532,11 +3532,37 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick,
translate([-.5,-3.75,0]) cube([7,2.5,6.5]);
}
}
if(type == "momentary_4.5x3.5x2.5_90") {
if(type == "momentary_4.5x3.5x2.5_90" && side == "top" && rotation == 0) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
union() {
translate([2.25,0,1.8]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "top" && rotation == 90) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,0,1.8]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "top" && rotation == 180) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,1,1.8]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "top" && rotation == 270) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,1,1.8]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "bottom" && rotation == 0) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,0,3.25]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "bottom" && rotation == 90) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,1.25,3.25]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "bottom" && rotation == 180) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,1.25,3.25]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_4.5x3.5x2.5_90" && side == "bottom"&& rotation == 270) {
place(loc_x,loc_y,loc_z,4.5,3.5,rotation,side)
translate([2.25,0,3.25]) rotate([90,0,0]) cylinder(d=3.5, h=8);
}
if(type == "momentary_7x3x3_90" && rotation == 0) {
place(loc_x,loc_y,loc_z,7,3,rotation,side)