Commit 3ca33b0c authored by Mio Iwakura's avatar Mio Iwakura

Nightly

parent 5a002ea2
......@@ -136,18 +136,16 @@ module usb()
}
module usbb()
{
usbb_x = 18;
usbb_y = 103.5;
usbb_z = 1;
top_xshft = 3;
top_y = 5;
top_yoff = 2.5;
tab_x = 10.5;
tab_y = 6.5;
tab_yoff = 4.5;
linear_extrude(usbb_z)
union()
module bracket()
{
usbb_x = 18;
usbb_y = 103.5;
top_xshft = 3;
top_y = 5;
top_yoff = 2.5;
tab_x = 10.5;
tab_y = 6.5;
tab_yoff = 4.5;
translate([-top_xshft, (usbb_y + top_y)/2 + top_yoff])
square([usbb_x, top_y], center = true);
translate([-usbb_x/2 - top_xshft,
......@@ -163,50 +161,22 @@ module usbb()
translate([0, -(usbb_y + tab_y)/2 - tab_yoff , 0])
square([tab_x, tab_y], center = true);
}
usbb_z = 1;
safe_zone = 3;
tab_ysum = tab_y + tab_yoff;
top_ysum = top_y + top_yoff;
total_ysum = usbb_y + tab_ysum + top_ysum;
/* %linear_extrude(safe_zone) */
/* polygon([[-usbb_x/2 - top_xshft, total_ysum/2], */
/* [usbb_x/2 - top_xshft, total_ysum/2], */
/* [usbb_x/2 - top_xshft, total_ysum/2 - top_y], */
/* [usbb_x/2, total_ysum/2 - top_ysum], */
/* [usbb_x/2, -total_ysum/2 - top_ysum + tab_ysum], */
/* [tab_x/2, -total_ysum/2 - top_ysum + tab_y], */
/* [tab_x/2, -total_ysum/2 - top_ysum], */
/* [-tab_x/2, -total_ysum/2 - top_ysum], */
/* [-tab_x/2, -total_ysum/2 - top_ysum + tab_y], */
/* [-usbb_x/2, -total_ysum/2 - top_ysum + tab_ysum], */
/* [-usbb_x/2, total_ysum/2 - top_ysum], */
/* [-usbb_x/2 - top_xshft, total_ysum/2 - top_y], */
/* [-usbb_x/2 - top_xshft, total_ysum/2]]); */
%linear_extrude(safe_zone)
bracket();
color("white")
translate([0, 0, safe_zone])
linear_extrude(usbb_z)
polygon([[-usbb_x/2 - top_xshft, total_ysum/2],
[usbb_x/2 - top_xshft, total_ysum/2],
[usbb_x/2 - top_xshft, total_ysum/2 - top_y],
[usbb_x/2, total_ysum/2 - top_ysum],
[usbb_x/2, -total_ysum/2 - top_ysum + tab_ysum],
[tab_x/2, -total_ysum/2 - top_ysum + tab_y],
[tab_x/2, -total_ysum/2 - top_ysum],
[-tab_x/2, -total_ysum/2 - top_ysum],
[-tab_x/2, -total_ysum/2 - top_ysum + tab_y],
[-usbb_x/2, -total_ysum/2 - top_ysum + tab_ysum],
[-usbb_x/2, total_ysum/2 - top_ysum],
[-usbb_x/2 - top_xshft, total_ysum/2 - top_y],
[-usbb_x/2 - top_xshft, total_ysum/2]]);
bracket();
}
usbb();
/* exb(); */
/* translate([164, -1, 14]) */
/* rotate(a = [0, 0, 90]) */
/* hu(); */
/* translate([-50.25, 31, 62]) */
/* rotate(a = [90, 0, -90]) */
/* usb(); */
/* translate([-58.25, 71.25, 68.5]) */
/* translate([-58.25, 71.25, 67]) */
/* rotate(a = [90, 0, 180]) */
/* usbb(); */
exb();
translate([164, -1, 14])
rotate(a = [0, 0, 90])
hu();
translate([-50.25, 31, 62])
rotate(a = [90, 0, -90])
usb();
translate([-58.25, 71.25, 68.75])
rotate(a = [90, 0, 180])
usbb();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment