|
![](/i/fill.gif) |
GrndAdmThrawn wrote:
>
> I'm wondering how you would like take two cylinder at like 90 degree or 45
> degree then put the end together but the end part would stick out of each
> others, how would u cut those end part off and delete it so the pipe like
> fits together without any gap or junk sticking out??
If you want a sharp bend you could do it like this:
#declare cut_cylinder=difference { // cylinder cut at 45deg
cylinder { <-100, 0, 0>, <20, 0, 0>, 5 }
plane {-x, 0 rotate <0, 45, 0> }
}
#declare deg90_cylinder=union{
object { cut_cylinder }
object { cut_cylinder rotate <0, -90, 0> scale <-1, 1, 1> }
}
If you want a softer bend, you can just connect two cylinders with a
sphere like this:
#declare soft90deg_cylinder=union{
cylinder { <-100, 0, 0>, <0, 0, 0>, 5 }
sphere { <0, 0, 0>, 5 }
cylinder { <0, 0, 0>, <0, 0, -100>, 5 }
}
/Ib
------------------------------
Gallery: http://www.ibras.dk
Post a reply to this message
|
![](/i/fill.gif) |