Make keyboard cutout optional
This commit is contained in:
		
							parent
							
								
									a25823d06a
								
							
						
					
					
						commit
						e6c5777269
					
				
					 1 changed files with 12 additions and 7 deletions
				
			
		|  | @ -4,7 +4,7 @@ include <dimensions.scad> | ||||||
| include <support.scad> | include <support.scad> | ||||||
| include <keyboard.scad> | include <keyboard.scad> | ||||||
| 
 | 
 | ||||||
| module top_case() { | module top_case(with_keyboard=false) { | ||||||
|     keyboard_deck_z_offset = wall_height - keyboard_switch_height; |     keyboard_deck_z_offset = wall_height - keyboard_switch_height; | ||||||
| 
 | 
 | ||||||
|     accent_width    = 1.0000; |     accent_width    = 1.0000; | ||||||
|  | @ -25,8 +25,10 @@ module top_case() { | ||||||
|         difference() { |         difference() { | ||||||
|             cube([case_width_bottom, case_length_bottom, wall_width]); |             cube([case_width_bottom, case_length_bottom, wall_width]); | ||||||
| 
 | 
 | ||||||
|             translate([keyboard_x_offset, keyboard_y_offset, -eps]) |             if (with_keyboard) { | ||||||
|             cube([keyboard_pcb_width, keyboard_pcb_length, wall_width + 2*eps]); |                 translate([keyboard_x_offset, keyboard_y_offset, -eps]) | ||||||
|  |                 cube([keyboard_pcb_width, keyboard_pcb_length, wall_width + 2*eps]); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -205,11 +207,14 @@ module top_case() { | ||||||
|         vents(); |         vents(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     supports(); |  | ||||||
|     screw_posts(); |     screw_posts(); | ||||||
| 
 | 
 | ||||||
|     translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset]) |     if (with_keyboard) { | ||||||
|     keyboard_deck(wall_width); |         supports(); | ||||||
|  | 
 | ||||||
|  |         translate([keyboard_x_offset, keyboard_y_offset, keyboard_deck_z_offset]) | ||||||
|  |         keyboard_deck(wall_width); | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| top_case(); | top_case(true); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue