POV-Ray : Newsgroups : povray.general : Intersection of cylinder and spherical shell : Re: Intersection of cylinder and spherical shell Server Time
31 Jul 2024 00:29:33 EDT (-0400)
  Re: Intersection of cylinder and spherical shell  
From: Alain
Date: 15 Feb 2008 17:12:27
Message: <47b60e4b$1@news.povray.org>
Chris B nous apporta ses lumieres en ce 2008/02/15 03:44:
> "thisroad" <nomail@nomail> wrote in message 
> news:web.47b4fdb672c7bea14915bbf10@news.povray.org...
>> Triple_R, thanks for the input!  I'll play around with that and see what
>> happens.  It seems like there would be a simple way to create this --  
>> maybe
>> differencing this sphere with one that's marginally smaller would work.
>>
> 
> If you want to see the two rings where the surfaces of the sphere and the 
> cylinder touch you'll need to give them some thickness. Yes, you can do this 
> for the sphere by differencing a smaller sphere. You can do the same for the 
> cylinder by differencing it with another cylinder of a smaller radius.
> 
> intersection {
>   difference {
>     sphere {...}  // Big Sphere
>     sphere {...}  // Smaller Sphere
>   }
>   difference {
>     cylinder {...} // Big Cylinder
>     cylinder {...} // Smaller Cylinder
>   }
> }
> 
> You shouldn't need the 'open' keyword on the cylinder.
> 
> Regards,
> Chris B. 
> 
> 
Make the inside cylinder a bit longer than the outer one. If they are the same 
length, you'll have coincident surfaces at each ends.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when your source files are starting to 
get bigger than the image files.
     -- Matt


Post a reply to this message

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