62 lines
No EOL
849 B
OpenSCAD
62 lines
No EOL
849 B
OpenSCAD
|
|
long = 90;
|
|
|
|
module Gauge()
|
|
{
|
|
difference()
|
|
{
|
|
union()
|
|
{
|
|
cube([long,8,8]);
|
|
rotate([0,0,5])
|
|
cube([8,long,8]);
|
|
}
|
|
translate([-5, long-5, 4])
|
|
{
|
|
rotate([0,90,0])
|
|
cylinder(r=1.6,h=30,center=true,$fn=30);
|
|
translate([16,0,0])
|
|
rotate([0,90,0])
|
|
rotate([0,0,30])
|
|
cylinder(r=3.2,h=30,center=true,$fn=6);
|
|
translate([-10,-15,-10])
|
|
cube([8,25,20]);
|
|
}
|
|
}
|
|
}
|
|
|
|
module ThumbWheel()
|
|
{
|
|
difference()
|
|
{
|
|
cylinder(r=10,h=4,center=true,$fn=50);
|
|
cylinder(r=1.6,h=30,center=true,$fn=30);
|
|
|
|
translate([0,0,15])
|
|
cylinder(r=3.2,h=30,center=true,$fn=6);
|
|
for(a = [0 : 9] )
|
|
{
|
|
rotate([0,0,36*a])
|
|
translate([4,0,1.3])
|
|
rotate([45,0,0])
|
|
cube([20,4,4]);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
module TestPiece()
|
|
{
|
|
union()
|
|
{
|
|
cube([long,8,8]);
|
|
cube([8,long,8]);
|
|
cube([10,10,long]);
|
|
}
|
|
}
|
|
|
|
//TestPiece();
|
|
|
|
//Gauge();
|
|
|
|
ThumbWheel(); |