POV-Ray : Newsgroups : povray.newusers : Cut a sphere : Re: Cut a sphere Server Time
29 Jul 2024 16:27:11 EDT (-0400)
  Re: Cut a sphere  
From: Oleguer Vilella
Date: 31 Jul 2005 15:12:39
Message: <42ed22a7$1@news.povray.org>
Hi Alain,

Yeah, you've used a box instead of a plane. Why?

Regards,
Oleguer





news:42ed1e22@news.povray.org...
> Oleguer Vilella nous apporta ses lumieres en ce 2005-07-31 08:32:
>> Hi all,
>>
>> I've done this object:
>> ======================================
>> merge{
>>     sphere { <0, 0, 0>, 1
>>       translate -0.5*x
>>     }
>>     sphere { <0, 0, 0>, 0.5
>>       translate 0.5*x
>>     scale <1.5, 0, 0>
>>     }
>>     pigment { rgbf <0.9, 0.9, 0.9, 1> }
>>     rotate <0, 0, 0>
>> translate <0, 0, 0>
>> scale 5
>>
>> clipped_by { plane { z, 0 }
>>
>> }}
>> ======================================
>> And I want to cut it, to do it I used a "clipped_by" with a plane, but I 
>> think I'm wrong.
>>
>> I want to cut the object and then I want to put objects inside. So, I 
>> want to have it "empty". I don't know if the method that I'm using will 
>> work properly.
>>
>> All helps will be welcome.
>>
>> Regards,
>> Oleguer
> As it is, it "looks" empty, if you put some rotation to the whole object, 
> after the clipped_by. Removing the filter and using interior_texture shows 
> that clearly, but it have NO thickness.
> What I'd do is this:
> difference{
> merge{sphere{0,1 translate -0.5*x}//0,1 = <0,0,0>,1
> sphere{0,0.5 translate 0.5*x scale<1.5,1,1>}//get rid of warning about 
> scaling by 0
> }//exterior part
> sphere{0,0.9 translate -0.5*x}//change the 0.9 and 0.4 to set the 
> thickness of the side
> sphere{0,0.4 translate 0.5*x scale<1.5,1,1>}//iner "hollow"
> box{<-2,2,0>,<2,-2,-2>}//cut away unneded part
> pigment{rgbt 1}// no surface colour
> interior{ior 1.5 //glass, optionaly add some dispersion, but very subtle 
> effect
> fade_color rgb 0.9//make the material coloured in it's mass
> fade_distance 0.1//adjust to your taste
> fade_power 1001//use exponential fading
> }
> }
>
> Alain


Post a reply to this message

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