Case, wip
This commit is contained in:
@@ -1,26 +1,53 @@
|
||||
height = 95.1738;
|
||||
width = 132.6134;
|
||||
$fn=60;
|
||||
step = 0.05;
|
||||
$fn=30;
|
||||
|
||||
height_translation = 0;
|
||||
|
||||
|
||||
/*
|
||||
// Height of case is 5mm from pcb to switch inset,
|
||||
// plus 1.6mm pcb height, for a total of 6.6mm
|
||||
for (i = [0:0.05:2.5])
|
||||
color("red")
|
||||
for (i = [0:step:2.5])
|
||||
{
|
||||
translate([0,0,i]) //height_translation])
|
||||
base_line_extruded(i, 0.1);
|
||||
base_line_extruded(i, 1);
|
||||
}
|
||||
|
||||
color("green")
|
||||
translate([0,0,2.5]) //height_translation])
|
||||
base_line_extruded(2.5, 1.6);
|
||||
|
||||
for (i = [4.1:0.05:6.6])
|
||||
|
||||
color("blue")
|
||||
for (i = [4.1:step:6.6])
|
||||
{
|
||||
translate([0,0,i]) //height_translation])
|
||||
translate([0,0,i-1]) //height_translation])
|
||||
base_line_extruded(6.6-i, 1);
|
||||
}
|
||||
*/
|
||||
// Lip to stop pcb
|
||||
color("yellow")
|
||||
translate([0,0,1.6])
|
||||
difference()
|
||||
{
|
||||
offset( delta=1)
|
||||
base();
|
||||
offset( delta=-1)
|
||||
base();
|
||||
}
|
||||
|
||||
/*
|
||||
// Top plate
|
||||
color("pink")
|
||||
translate([0,0,5.1])
|
||||
linear_extrude(1.5)
|
||||
offset( delta=0.5)
|
||||
base();
|
||||
|
||||
*/
|
||||
|
||||
module base_line_extruded (factor, extrusion)
|
||||
{
|
||||
|
||||
@@ -5,4 +5,4 @@ Steps
|
||||
2. Open in inkscape, select all and combine
|
||||
3. For every point: mark(there will be 2) and select "join points": shft+L(shft L
|
||||
4. Import and extrude(1.6 for bottom, 1.5 for top) in openscad
|
||||
|
||||
5. Generate border in parts, export and import into tinkercad
|
||||
|
||||
Reference in New Issue
Block a user