Move common leg translation/rotation into module

This commit is contained in:
Joel Ebel 2018-05-21 23:43:58 -04:00
parent cc44b9dabd
commit f3ac692891

View File

@ -256,6 +256,8 @@ module Decorations() {
Produces a single box fixation leg with screw hole.
*/
module leg() {
translate([0, Thick, Height/2]) {
rotate([90, 0, 180]) {
difference() {
linear_extrude(Thick) {
difference() {
@ -274,6 +276,8 @@ module leg() {
cube([8*ScrewHole,4*ScrewHole,OuterMargin*2]);
}
}
}
}
}
@ -282,16 +286,12 @@ module leg() {
This module produces the wall fixation box legs.
*/
module Legs() {
translate([MountInset, Thick, Height/2]) {
rotate([90, 0, 180]) {
translate([MountInset, 0, 0]) {
leg();
}
}
translate([Length - MountInset, Thick, Height/2]) {
rotate([90, 0, 180]) {
translate([Length - MountInset, 0, 0]) {
leg();
}
}
}