1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-23 02:41:19 +00:00
3dmodels/pir-holder.jscad
Knut Ahlers e8d74403d5
Add holder for Groove PIR
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-07-31 15:26:53 +02:00

24 lines
610 B
JavaScript

/*
* title : PIR holder
* author : Knut Ahlers
* revision : 0.1.1
*/
/* exported main */
function main () {
return union(
difference(
cube({ size: [45, 5, 29], center: true }).translate([0, 0, -2.5]),
cube({ size: [2, 5, 22], center: true }).translate([19.5, 0, 1]),
cube({ size: [18, 5, 1.5], center: true }).translate([0, 0, -14.5])
),
cylinder({ h: 4, r: 2, center: true })
.rotateX(90)
.translate([-12.5, -4, -10]),
cylinder({ h: 4, r: 2, center: true })
.rotateX(90)
.translate([-12.5, -4, 10])
)
}
// vim: set ft=javascript: