Problem with union/difference January 13, 2013 02:11PM |
Registered: 11 years ago Posts: 2 |
//draw counter sunk hole module draw_csHole (){ // m3 counter sunk hole // m3 dia=5.60 // m3 headheight=1.5 // m3 threads=3.0 dia=5.8; headht=1.6; thread=3.1; translate ([0,0,-headht])union(){ // head cylinder(r2=dia/2,r1=thread/2,h=headht, $fn=24); translate([0,0,-20])cylinder(r=thread/2,h=50, $fn=24); translate([0,0,headht]) cylinder(r=dia/2,h=10, $fn=24); } } difference(){ translate ([0,0,-2.5])cube([10,10,5]); draw_csHole(); }
Re: Problem with union/difference January 14, 2013 02:41AM |
Registered: 14 years ago Posts: 3,742 |
//draw counter sunk hole module draw_csHole (){ // m3 counter sunk hole // m3 dia=5.60 // m3 headheight=1.5 // m3 threads=3.0 dia=5.8; headht=1.6; thread=3.1; translate ([0,0,-headht])union(){ // head cylinder(r2=dia/2,r1=thread/2,h=headht, $fn=24); translate([0,0,-20])cylinder(r=thread/2,h=50, $fn=24); translate([0,0,headht-0.001]) cylinder(r=dia/2,h=10, $fn=24); } } difference(){ translate ([0,0,-2.5])cube([10,10,5]); draw_csHole(); }
Re: Problem with union/difference January 14, 2013 02:11PM |
Registered: 11 years ago Posts: 2 |
Puschkin
Re: Problem with union/difference January 16, 2013 04:17AM |
difference(){ cylinder(h=10, r=10); translate([0,0,-1]) cylinder(h=12, r=7); } color("Red") intersection(){ translate([0,0,5]) cube([20,2,10], true); cylinder(h=10, r=7); }
Re: Problem with union/difference January 16, 2013 04:30AM |
Registered: 14 years ago Posts: 3,742 |
Puschkin
Re: Problem with union/difference January 16, 2013 07:21AM |
Re: Problem with union/difference January 16, 2013 07:36AM |
Registered: 14 years ago Posts: 3,742 |
Quote
Puschkin
Is there a way to export .stl with color information?