[OpenSCAD] Bent rod

runsun runsun at gmail.com
Sat Sep 26 01:34:24 EDT 2015


Not exactly what you are asking for, but should have enough details for you
to work with:

> $fn=100;
> eps=0.001; // to make sure there's no gap
> r=1;
> module Ring(r=r){
>     rotate_extrude()
>     translate( [3,0,0] )circle( r );
> }
> 
> module Arc(r=r){
>     difference(){
>         Ring(r);
>         translate( [0,0, -2.5] )
>         cube( [5,5,5] );
>     }
> }
> 
> module S(r){
>     Arc(r=r);
>     translate( [-eps,3,0 ] ) // use eps
>     rotate( [-90,0,180] )
>     translate( [0,-3,0 ] )
>     Arc(r=r);
> }
> 
> difference(){
>     S();
>     S(r=0.6);
> }   
<http://forum.openscad.org/file/n14004/20150925_bent_pipe.png> 




-----

$  Runsun Pan, PhD 

$ -- libs: doctest , faces ( git ), offliner ( git );

 tips: hash( 1 , 2 ), sweep , var , lerp 

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly 




--
View this message in context: http://forum.openscad.org/Bent-rod-tp14003p14004.html
Sent from the OpenSCAD mailing list archive at Nabble.com.




More information about the Discuss mailing list