POV-Ray : Newsgroups : povray.advanced-users : How would i do a Mitt? means put two pipe together seamless at 90 degree. : Re: How would i do a Mitt? means put two pipe together seamless at 90 degree. Server Time
29 Jul 2024 18:23:46 EDT (-0400)
  Re: How would i do a Mitt? means put two pipe together seamless at 90 degree.  
From: Ib Rasmussen
Date: 26 Jun 2001 16:37:32
Message: <3B38F2AF.2F0C7929@ibras.dk>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.