Commit 8bc019f4 authored by nextime's avatar nextime

Initial import

parents
module lamp() {
$fn=128;
union() {
difference() {
union(){
cylinder(r=75, h=15);
translate([0,0,10]) cylinder(r=80, h=5);
}
translate([-90,-100,-5])cube([180,100,30]);
translate([0,0,5]) cylinder(r=65, h=40);
translate([0,40,-5]) cylinder(r=25, h=20);
translate([40,10,-5]) cylinder(r=2, h=15);
translate([40,12,-5]) cylinder(r=2, h=15);
translate([-40,10,-5]) cylinder(r=2, h=15);
translate([-40,12,-5]) cylinder(r=2, h=15);
translate([0,0,7.5]) {
translate([0,80,0])
rotate([90,0,0])cylinder(r=1.6, h=30);
}
}
difference() {
union() {
translate([-25,5,0]) cube([50,6,40]);
translate([0,11,40])
rotate([90,0,0]) cylinder(r=25, h=6);
}
translate([0,25,40]) {
rotate([90,0,0]) {
//cylinder(r=30, h=120);
cylinder(r=20, h=40);
}
}
}
} // union
}
module lamp_spaceadd()
{
$fn=128;
translate([0,25,40]) {
rotate([90,0,0]) {
cylinder(r=30, h=100);
}
}
translate([0,0,7.5]) {
translate([0,130,0])
rotate([90,0,0])cylinder(r=1.6, h=60);
}
}
module lamp_space() {
union() {
lamp();
lamp_spaceadd();
}
}
module lamp_support() {
$fn=128;
difference(){
cylinder(r=85, h=16);
translate([-95,-100,-5])cube([190,100,30]);
translate([0,0,-1]) {
cylinder(r=75.5, h=25);
translate([0,0,10]) cylinder(r=80, h=6);
}
}
}
module lamp_nopinsupport() {
$fn=128;
difference(){
lamp_support();
translate([0,0,-1]) {
translate([0,0,7.5]) {
translate([0,90,0])
rotate([90,0,0])cylinder(r=1.6, h=50);
}
}
}
}
module lamp_pinsupport() {
$fn=128;
union() {
lamp_support();
translate([0,0,-1]) {
translate([0,0,7.65]) {
translate([0,84,0])
rotate([90,0,0])cylinder(r=1.3, h=14);
}
}
}
}
// solo lampada
// lamp();
// lampada e ingombri
//lamp_space();
// supporto
lamp_nopinsupport();
// supporto con pin
//lamp_pinsupport();
use <wall-lamp-mount.scad>
// tests
//color("yellow")rotate([90, 0, 180]) lamp_space();
//translate([-100,0,-100]) cube([200,100,200]);
/*
difference() {
translate([-90,2,0]) cube([180,100,80]);
translate([2,0,0]) rotate([270,0,0]) cylinder(r=70, h=200);
rotate([90, 0, 180])lamp_space();
}
*/
lamp_nopinsupport();
\ No newline at end of file
//use <wall-lamp-mount.scad>
/*
union(){
lamp_nopinsupport();
translate([80,-20,0])cube([5,50,16]);
translate([-85,-20,0])cube([5,50,16]);
}
*/
$fn=256;
LAMPH=175;
LAMPS=1;
translate([0,0,0]) {
union() {
difference() {
cylinder(r=85+LAMPS, h=LAMPH);
translate([0,0,-1])
cylinder(r=85, h=LAMPH+2);
translate([-100,0,-1])
cube([200,200,LAMPH+2]);
}
difference(){
translate([85,0,0])cube([10,20,LAMPH]);
translate([106,0,-1])
cylinder(r=20, h=LAMPH+2);
}
difference(){
translate([-95,0,0])cube([10,20,LAMPH]);
translate([-106,0,-1])
cylinder(r=20, h=LAMPH+2);
}
}
}
use <wall-lamp-mount.scad>
// tests
//color("yellow")rotate([90, 0, 180]) lamp_space();
//translate([-100,0,-100]) cube([200,100,200]);
/*
difference() {
translate([-90,2,0]) cube([180,100,80]);
translate([2,0,0]) rotate([270,0,0]) cylinder(r=70, h=200);
rotate([90, 0, 180])lamp_space();
}
*/
union(){
lamp_nopinsupport();
translate([80,-20,0])cube([5,50,16]);
translate([-85,-20,0])cube([5,50,16]);
}
\ No newline at end of file
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