POV-Ray : Newsgroups : povray.general : how to make a revolution plot from a parametric function? : Re: how to make a revolution plot from a parametric function? Server Time
8 Jul 2024 14:02:25 EDT (-0400)
  Re: how to make a revolution plot from a parametric function?  
From: Alain
Date: 5 Jun 2014 12:50:15
Message: <53909fc7$1@news.povray.org>


> #declare surftest =
> isosurface {
>   function { pow(x*x+y*y+z*z,3)-pow(3*x*x-y*y-z*z,2)}
> // evaluate 356*Min_factor,  sqrt(356/(356*Min_factor)),  0.7
>   max_gradient 1500
>   all_intersections
>   contained_by { sphere { 0 3}}
>   clipped_by {box {-3 3}}
>   pigment {Red}
>   finish { phong 0.6 reflection 0.2 }
> }


>
> JimT
>

A simplification when using evaluate:

sqrt(356/(356*Min_factor)) = sqrt(1/Min_factor)

In this case, the following should work correctly and should be faster:

#declare Min_factor = 0.6;
evaluate 1500*Min_factor,  sqrt(1/1Min_factor),  0.7


Alain


Post a reply to this message

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