POV-Ray : Newsgroups : povray.binaries.images : A method creat uniform thick shell : A method creat uniform thick shell Server Time
26 Apr 2024 04:22:49 EDT (-0400)
  A method creat uniform thick shell  
From: And
Date: 21 Oct 2013 03:05:06
Message: <web.5264d1b954cff585cc1fd1150@news.povray.org>
Hi,
I have a method using isosurface render spheroid shell below.

use this two function

#declare f_spheroid=function(var1,var2,var3, a,b){
var1*var1/a/a+var2*var2/a/a+var3*var3/b/b-1
}

#declare f_spheroid_normalized=function(var1,var2,var3, a,b){
f_spheroid(var1,var2,var3, a,b)
/sqrt(4*(var1*var1+var2*var2)/pow(a,4)+4*var3*var3/pow(b,4))
}


//than difference these two isosurfaces
difference{
isosurface{
function{f_spheroid(x,y,z,1,3)}
}
isosurface{
function{f_spheroid_normalized(x,y,z,1,3)+thickness}
}
}


Post a reply to this message


Attachments:
Download 'spheroid shell diffuse .jpg' (28 KB)

Preview of image 'spheroid shell diffuse .jpg'
spheroid shell diffuse .jpg


 

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