POV-Ray : Newsgroups : povray.newusers : Smooth the corners in the intersection of two tubes : Re: Smooth the corners in the intersection of two tubes Server Time
2 Jul 2024 22:36:52 EDT (-0400)
  Re: Smooth the corners in the intersection of two tubes  
From: Stephen
Date: 31 Jan 2011 10:40:54
Message: <4d46d806@news.povray.org>
On 31/01/2011 2:34 PM, Christian Froeschlin wrote:
> NoOneEagle wrote:
>> Ok, I got it from your code... Thanks (Grin)... I just had to think a
>> little about what you posted. Like I said, I'm new so... Thanks
>> again.
>
> Alternatively, if you want the corner to be rounded,
> combine the tubes such that they meet at midpoint of
> their end surfaces (leaving an empty wedge in the
> corner) and add a sphere to fill it up.

For more fun ;-)
Intersect a torus with a box so that only one quarter of the torus is 
visible. This will give you a rounded join like a bent pipe. (My values 

values.)


intersection {
  torus {
   0.750, 0.60
   rotate    <90.0, 0.0, 0.0>
   translate <0.720, 0.0, 0.0>
  }

  box {
   < -0.50,  -0.50,  -0.50 >,  < 0.50,  0.50,  0.50 >
   scale     <1.650, 1.650, 1.650>
   translate <-0.1080, 0.8270, 0.0>
  }

  texture{
   pigment { color rgb <1,0,0> }
   finish { phong 4.9}
  	}
  translate <0.030, 3.9980, 0.0>
}



-- 
Regards
     Stephen


Post a reply to this message

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