Move common leg translation/rotation into module
This commit is contained in:
parent
cc44b9dabd
commit
f3ac692891
@ -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() {
|
||||
@ -275,6 +277,8 @@ module leg() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Legs: legs module
|
||||
@ -282,17 +286,13 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Holes: holes module
|
||||
|
Loading…
Reference in New Issue
Block a user