User:Dorkmo/Ideas/Battery/SCAD: Difference between revisions
< User:Dorkmo | Ideas | Battery
Jump to navigation
Jump to search
(→mesh) |
(→mesh) |
||
Line 9: | Line 9: | ||
cage_wall = 10 ; | cage_wall = 10 ; | ||
width = 20; | width = 20; | ||
height = 20; | |||
for ( | cube(size = [20,20,20], center=true); | ||
for (h = [0 : height]) | |||
{ | |||
translate(h*[0,0,mesh_spacing]) | |||
{ | |||
rotate([0,mesh_angle,0]) | |||
{ | |||
for (w = [0 : width]) | |||
{ | |||
translate(w*[0,mesh_spacing,0]) | |||
{ | { | ||
cube(size = [mesh_opening,mesh_opening,(mesh_opening*2)+(sin(90)*(10/sin(90-mesh_angle)))], center=false); | cube(size = [mesh_opening,mesh_opening,(mesh_opening*2)+(sin(90)*(10/sin(90-mesh_angle)))], center=false); | ||
} | |||
} | |||
} | |||
} | |||
} | } | ||
</nowiki> | </nowiki> |
Revision as of 00:29, 28 October 2014
mesh
tweaking the pattern for holes through the cage
mesh_opening = 1 ; mesh_angle = 45; mesh_spacing = 2.5; cage_wall = 10 ; width = 20; height = 20; cube(size = [20,20,20], center=true); for (h = [0 : height]) { translate(h*[0,0,mesh_spacing]) { rotate([0,mesh_angle,0]) { for (w = [0 : width]) { translate(w*[0,mesh_spacing,0]) { cube(size = [mesh_opening,mesh_opening,(mesh_opening*2)+(sin(90)*(10/sin(90-mesh_angle)))], center=false); } } } } }
inside cage
height = 60; tub_width = 95; tub_length = 70; outsidewall = 5; basethickness = 5; tub_wall = 5; spacing = 5; cage_height = 40; cage_wall = 10; cage_endwall = 5; cage_base = 5; wedge_hieght = 10; difference() { cube(size = [(tub_width-(spacing*3))/2,tub_length-(spacing*2),cage_height], center=false); translate([cage_wall, cage_endwall, cage_base]) cube(size = [((tub_width-(spacing*3))/2)-(cage_wall*2),(tub_length-(spacing*2))-(cage_endwall*2),cage_height-cage_base], center=false); }
single cell tub
height = 60; oa_width = 80; oa_length = 105; outsidewall = 5; basethickness = 5; membranethickness = 5; tub_wall = 5; spacing = 5; cage_height = 40; cage_wall = 10; cage_base = 5; difference() { cube(size = [oa_width, oa_length, height], center=false); translate([outsidewall,outsidewall,basethickness]) cube(size = [oa_width-(outsidewall*2), oa_length-(outsidewall*2), height-basethickness], center=false); }