POV-Ray : Newsgroups : povray.general : wheel slice of a sphere : Re: wheel slice of a sphere Server Time
5 Nov 2024 07:15:22 EST (-0500)
  Re: wheel slice of a sphere  
From: Tim Attwood
Date: 3 Jun 2003 06:07:15
Message: <3edc7353@news.povray.org>
Maybe you should look at superellipsoids....

difference {
  superellipsoid {  <1, 0.5>
    scale z/2 
  }
  plane {y,0 rotate z*30}
  plane {y,0 rotate -z*30}
  pigment {Red}
  rotate <0,45,0>
}


// ----- Tim Attwood -----
light_source{-10 color rgb 1}#local T=6*z-3*x;#local I=T;#local 
M=0;#local A=
array[10]{1287709,43035510,7312399,36346003,50603446,6192184,12772732,33037915,
41777870,42384480}union{#while(M<99)#local 
N=int(mod(A[div(M,10)]/pow(6,(9-mod(
M,10))),6));#local 
I=I+((N=0)-(N=1))*y/2+((N=3)-(N=2))*x/2;#if(N=4)sphere{T.1}
cylinder{T,I,.1}#end#local T=((N>3)?I:T);#local M=M+1;#end pigment{rgb x+y}}


Post a reply to this message

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