AcornElectron

Changeset

40:cf96720ec877
2014-10-07 Paul Boddie raw files shortlog changelog graph Changed the cavity features around the base of the cartridge to use internal dimensions.
cartridge.scad (file)
     1.1 --- a/cartridge.scad	Mon Oct 06 23:08:59 2014 +0200
     1.2 +++ b/cartridge.scad	Tue Oct 07 00:39:32 2014 +0200
     1.3 @@ -148,33 +148,38 @@
     1.4  
     1.5  	/*
     1.6  	The back cavity is the indented part at the bottom of the back of the
     1.7 -	cartridge.
     1.8 +	cartridge. It appears to be mechanically superfluous, just making the
     1.9 +	shape of the cartridge look a bit fancier.
    1.10  	*/
    1.11  
    1.12  	back_cavity_width = 68.0;
    1.13  	back_cavity_inner_width = 65.0;
    1.14 -	back_cavity_offset_from_left = 10.5;
    1.15 -	back_cavity_inner_offset_from_left = 12.0;
    1.16 +	back_cavity_offset_from_inner_left = 9.0;
    1.17 +	back_cavity_inner_offset_from_inner_left = 10.5;
    1.18  	back_cavity_height = 13.5;
    1.19  	back_cavity_inner_height = 12.0;
    1.20  	back_cavity_depth = 1.5;
    1.21  
    1.22  	/*
    1.23 -	The effect of the cavity on the inside of the case.
    1.24 +	The effect of the cavity on the inside of the case. The most important
    1.25 +	measurement is the maximum offset since it defines the width of the
    1.26 +	internal space that should accommodate the plastic guides of the Plus 1
    1.27 +	socket.
    1.28  	*/
    1.29  
    1.30 -	inner_back_cavity_offset = 1.0;
    1.31 -	inner_back_cavity_offset_from_left = back_left;
    1.32 -	inner_back_slope_offset_from_left = 10.0;
    1.33 -	inner_back_slope_width = 2.5;
    1.34  	inner_back_slope_depth = 2.5;
    1.35 +	inner_back_slope_width = inner_back_slope_depth;
    1.36 +	inner_back_slope_max_offset = 10.5;
    1.37 +	inner_back_slope_min_offset = inner_back_slope_max_offset - inner_back_slope_width;
    1.38  
    1.39 -	inner_back_edge_offset = 2.0;
    1.40 +	/* The tapering off of the inner back edge. */
    1.41 +
    1.42  	inner_back_edge_width = 69.0;
    1.43  	inner_back_edge_height = 3.0;
    1.44  	inner_back_edge_depth = 1.5;
    1.45  
    1.46 -	inner_front_edge_offset = 0.5;
    1.47 +	/* The tapering off of the inner front edge. */
    1.48 +
    1.49  	inner_front_edge_width = width - front_side * 2;
    1.50  	inner_front_edge_height = 3.0;
    1.51  	inner_front_edge_depth = 1.5;
    1.52 @@ -436,15 +441,14 @@
    1.53  
    1.54  		/* Inner front edge cavity. */
    1.55  
    1.56 -		translate([inner_front_edge_width / 2,
    1.57 -			-front_depth + inner_front_edge_offset, -height / 2])
    1.58 +		translate([inner_front_edge_width / 2, -int_front_depth, -height / 2])
    1.59  			rotate([0, -90, 0])
    1.60  				linear_extrude(height = inner_front_edge_width)
    1.61  					polygon([
    1.62 +						[-extra, -inner_front_edge_depth],
    1.63 +						[0, -inner_front_edge_depth],
    1.64 +						[inner_front_edge_height, 0],
    1.65  						[-extra, 0],
    1.66 -						[0, 0],
    1.67 -						[inner_front_edge_height, inner_front_edge_depth],
    1.68 -						[-extra, inner_front_edge_depth],
    1.69  						]);
    1.70  
    1.71  		/* Inner top cutout for the top and sides of the back portion. */
    1.72 @@ -601,15 +605,15 @@
    1.73  
    1.74  			translate([0, back_depth, -height / 2])
    1.75  				linear_extrude(height = back_cavity_height)
    1.76 -					translate([-width / 2, 0, 0])
    1.77 +					translate([-int_width / 2, 0, 0])
    1.78  						polygon([
    1.79 -							[back_cavity_offset_from_left, 0],
    1.80 -							[back_cavity_inner_offset_from_left,
    1.81 +							[back_cavity_offset_from_inner_left, 0],
    1.82 +							[back_cavity_inner_offset_from_inner_left,
    1.83  								-back_cavity_depth],
    1.84 -							[back_cavity_inner_offset_from_left +
    1.85 +							[back_cavity_inner_offset_from_inner_left +
    1.86  								back_cavity_inner_width,
    1.87  								-back_cavity_depth],
    1.88 -							[back_cavity_offset_from_left +
    1.89 +							[back_cavity_offset_from_inner_left +
    1.90  								back_cavity_width, 0]
    1.91  							]);
    1.92  
    1.93 @@ -629,36 +633,32 @@
    1.94  
    1.95  		/* Inner back cavities. */
    1.96  
    1.97 -		translate([0, back_depth - inner_back_cavity_offset, -height / 2])
    1.98 +		translate([0, int_back_depth, -height / 2])
    1.99  			linear_extrude(height = int_connector_height)
   1.100 -				translate([-width / 2, 0, 0])
   1.101 +				translate([-int_width / 2, 0, 0])
   1.102  					polygon([
   1.103 -						[inner_back_cavity_offset_from_left, 0],
   1.104 -						[inner_back_slope_offset_from_left, 0],
   1.105 -						[inner_back_slope_offset_from_left +
   1.106 -							inner_back_slope_width,
   1.107 -							-inner_back_slope_depth],
   1.108 -						[inner_back_cavity_offset_from_left,
   1.109 -							-inner_back_slope_depth]
   1.110 +						[0, 0],
   1.111 +						[inner_back_slope_max_offset, 0],
   1.112 +						[inner_back_slope_min_offset,
   1.113 +							inner_back_slope_depth],
   1.114 +						[0, inner_back_slope_depth]
   1.115  						]);
   1.116  
   1.117 -		translate([0, back_depth - inner_back_cavity_offset, -height / 2])
   1.118 +		translate([0, int_back_depth, -height / 2])
   1.119  			linear_extrude(height = int_connector_height)
   1.120 -				translate([-width / 2, 0, 0])
   1.121 +				translate([int_width / 2, 0, 0])
   1.122  					polygon([
   1.123 -						[width - inner_back_slope_offset_from_left, 0],
   1.124 -						[width - inner_back_cavity_offset_from_left, 0],
   1.125 -						[width - inner_back_cavity_offset_from_left,
   1.126 -							-inner_back_slope_depth],
   1.127 -						[width - inner_back_slope_offset_from_left -
   1.128 -							inner_back_slope_width,
   1.129 -							-inner_back_slope_depth]
   1.130 +						[0, 0],
   1.131 +						[-inner_back_slope_max_offset, 0],
   1.132 +						[-inner_back_slope_min_offset,
   1.133 +							inner_back_slope_depth],
   1.134 +						[0, inner_back_slope_depth]
   1.135  						]);
   1.136  
   1.137  		/* Inner back edge cavity. */
   1.138  
   1.139  		translate([inner_back_edge_width / 2,
   1.140 -			back_depth - inner_back_edge_offset, -height / 2])
   1.141 +			int_back_depth + inner_back_edge_depth, -height / 2])
   1.142  			rotate([0, -90, 0])
   1.143  				linear_extrude(height = inner_back_edge_width)
   1.144  					polygon([