POV-Ray : Newsgroups : povray.newusers : Slicing an ellipsoid : Re: Slicing an ellipsoid Server Time
29 Jul 2024 00:33:05 EDT (-0400)
  Re: Slicing an ellipsoid  
From: Mike Williams
Date: 3 Nov 2007 11:36:39
Message: <HdOy4CApGKLHFwfB@econym.demon.co.uk>
Wasn't it Francesco who wrote:
>Mike Williams <nos### [at] econymdemoncouk> wrote:
>> Perhaps something like this
>>
>> sphere {0,1
>>   scale <2,1,1>
>>   clipped_by {plane {-y,0}}
>>   clipped_by {plane {z,0}}
>>   clipped_by {plane {-z,0} rotate <0,10,0>}
>>   pigment {rgb 1}
>> }
>
>That is exactly what I was trying to do! Thanks a lot Mike :)) Simple and
>powerful commands. Just a question: you make rotating the clipping plane in
>order to exclude some parts to the cut. Is it right?

You said you wanted a quarter ellipse rotated through 10 degrees. So I
made one cut at 0 and one cut at 10 degrees.

Actually, it would look more symmetrical if you make the cuts at -5 and
+5 degrees

sphere {0,1
  scale <2,1,1>
  clipped_by {plane {-y,0}}
  clipped_by {plane {z,0} rotate <0,-5,0>}
  clipped_by {plane {-z,0} rotate <0,5,0>}
  pigment {rgb 1}
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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