mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2024-11-23 05:34:23 +00:00
31 lines
398 B
OpenSCAD
31 lines
398 B
OpenSCAD
// Copyright (c) 2013 Oskar Linde. All rights reserved.
|
|
// License: BSD
|
|
//
|
|
// This library contains simple mirroring functions
|
|
//
|
|
// mirror_x()
|
|
// mirror_y()
|
|
// mirror_z()
|
|
|
|
|
|
module mirror_x() {
|
|
union() {
|
|
child();
|
|
scale([-1,1,1]) child();
|
|
}
|
|
}
|
|
|
|
module mirror_y() {
|
|
union() {
|
|
child();
|
|
scale([1,-1,1]) child();
|
|
}
|
|
}
|
|
|
|
module mirror_z() {
|
|
union() {
|
|
child();
|
|
scale([1,1,-1]) child();
|
|
}
|
|
}
|