Fix naming collision
This commit is contained in:
		
							parent
							
								
									a4f2aefe29
								
							
						
					
					
						commit
						a014766104
					
				
					 1 changed files with 18 additions and 18 deletions
				
			
		|  | @ -1,9 +1,9 @@ | |||
| $fn = 72; | ||||
| 
 | ||||
| pcb_width  = 257.175; | ||||
| pcb_height =  95.250; | ||||
| pcb_length =  95.250; | ||||
| 
 | ||||
| module keyboard_base_plate(pcb_width, pcb_height) { | ||||
| module keyboard_base_plate(pcb_width, pcb_length) { | ||||
|     pcb_clearance_edge   = 1.0; | ||||
|     pcb_clearance_bottom = 2.0; | ||||
|      | ||||
|  | @ -16,7 +16,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|     case_color = [0.5, 0.5, 0.5, 1.0]; | ||||
| 
 | ||||
|     bottom_width  = 2 * (pcb_clearance_edge + thickness) + pcb_width; | ||||
|     bottom_height = 2 * (pcb_clearance_edge + thickness) + pcb_height; | ||||
|     bottom_length = 2 * (pcb_clearance_edge + thickness) + pcb_length; | ||||
| 
 | ||||
|     screw_holes = [ | ||||
|         [  4.8150, 85.7250], | ||||
|  | @ -83,8 +83,8 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|      | ||||
|     module ridges() { | ||||
|         horizontal = [ | ||||
|             (bottom_height / 3), | ||||
|             (bottom_height / 3) * 2 | ||||
|             (bottom_length / 3), | ||||
|             (bottom_length / 3) * 2 | ||||
|         ]; | ||||
|          | ||||
|         vertical = [ | ||||
|  | @ -100,13 +100,13 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|          | ||||
|         for (x = vertical) { | ||||
|             side([x, 0 - pcb_clearance_edge, 0], | ||||
|                  [thickness * 2, pcb_height, pcb_clearance_edge]); | ||||
|                  [thickness * 2, pcb_length, pcb_clearance_edge]); | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     /* Upper right corner */ | ||||
|     round_corner([thickness + pcb_clearance_edge + pcb_width, | ||||
|                   thickness + pcb_clearance_edge + pcb_height, | ||||
|                   thickness + pcb_clearance_edge + pcb_length, | ||||
|                  -thickness/2], | ||||
|                  [90, 90, 90]); | ||||
| 
 | ||||
|  | @ -124,13 +124,13 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
| 
 | ||||
|     /* Upper left corner */ | ||||
|     round_corner([0 - thickness - pcb_clearance_edge, | ||||
|                       thickness + pcb_clearance_edge + pcb_height, | ||||
|                       thickness + pcb_clearance_edge + pcb_length, | ||||
|                      -thickness/2], | ||||
|                  [0, 90, 90]); | ||||
| 
 | ||||
|     /* Upper edge */ | ||||
|     round_edge([0 - thickness - pcb_clearance_edge, | ||||
|                     thickness + pcb_clearance_edge + pcb_height, | ||||
|                     thickness + pcb_clearance_edge + pcb_length, | ||||
|                    -thickness/2], | ||||
|                [0, 90, 0], | ||||
|                bottom_width); | ||||
|  | @ -140,7 +140,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|                 0 - thickness - pcb_clearance_edge, | ||||
|                     -thickness/2], | ||||
|                [270, 0, 0], | ||||
|                bottom_height); | ||||
|                bottom_length); | ||||
|           | ||||
|     /* Lower edge */ | ||||
|     round_edge([0 - thickness - pcb_clearance_edge, | ||||
|  | @ -154,11 +154,11 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|                 0 - thickness - pcb_clearance_edge, | ||||
|                    -thickness/2], | ||||
|                [270, 90, 0], | ||||
|                bottom_height); | ||||
|                bottom_length); | ||||
| 
 | ||||
|     /* Upper right wall corner */ | ||||
|     wall_corner([thickness + pcb_clearance_edge + pcb_width, | ||||
|                  thickness + pcb_clearance_edge + pcb_height, | ||||
|                  thickness + pcb_clearance_edge + pcb_length, | ||||
|                 -thickness/2], | ||||
|                 [0, 0, 0], | ||||
|                 corner_radius, | ||||
|  | @ -182,7 +182,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|                  | ||||
|     /* Upper left wall corner */ | ||||
|     wall_corner([0 - thickness - pcb_clearance_edge, | ||||
|                      thickness + pcb_clearance_edge + pcb_height, | ||||
|                      thickness + pcb_clearance_edge + pcb_length, | ||||
|                     -thickness/2], | ||||
|                 [0, 0, 90], | ||||
|                 corner_radius, | ||||
|  | @ -190,7 +190,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|   | ||||
|     /* Upper wall */ | ||||
|     side([0 - thickness - pcb_clearance_edge, | ||||
|                           pcb_clearance_edge + pcb_height + corner_radius, | ||||
|                           pcb_clearance_edge + pcb_length + corner_radius, | ||||
|              -thickness/2], | ||||
|          [bottom_width, thickness, wall_height]); | ||||
|            | ||||
|  | @ -198,7 +198,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|     side([pcb_clearance_edge + pcb_width + corner_radius, | ||||
|           0 - thickness - pcb_clearance_edge, | ||||
|              -thickness/2], | ||||
|          [thickness, bottom_height, wall_height]); | ||||
|          [thickness, bottom_length, wall_height]); | ||||
|            | ||||
|     /* Lower wall */ | ||||
|     side([0 - thickness - pcb_clearance_edge, | ||||
|  | @ -210,13 +210,13 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|     side([0 - thickness - pcb_clearance_edge - corner_radius, | ||||
|           0 - thickness - pcb_clearance_edge, | ||||
|              -thickness/2], | ||||
|          [thickness, bottom_height, wall_height]); | ||||
|          [thickness, bottom_length, wall_height]); | ||||
| 
 | ||||
|     /* Bottom plate */ | ||||
|     side([0 - thickness - pcb_clearance_edge, | ||||
|           0 - thickness - pcb_clearance_edge, | ||||
|           0 - thickness], | ||||
|          [bottom_width, bottom_height, thickness]); | ||||
|          [bottom_width, bottom_length, thickness]); | ||||
|            | ||||
|     /* Screw holes */ | ||||
|     for (screw_hole = screw_holes) { | ||||
|  | @ -229,4 +229,4 @@ module keyboard_base_plate(pcb_width, pcb_height) { | |||
|     ridges(); | ||||
| } | ||||
| 
 | ||||
| keyboard_base_plate(pcb_width, pcb_height); | ||||
| keyboard_base_plate(pcb_width, pcb_length); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue