POV-Ray : Newsgroups : povray.general : Quicker substitute for parametric object : Quicker substitute for parametric object Server Time
30 Jul 2024 20:27:19 EDT (-0400)
  Quicker substitute for parametric object  
From: SharkD
Date: 28 Jun 2008 13:35:01
Message: <web.4866763581617d2ffa138a830@news.povray.org>
I've created the following parametric object:

#local Wid = 1/2;
#local Hgh = 1/2;
#local Thk = 1/32;
#local Trn = 256/Hgh/64;
parametric
{
 function { (1/2 - v * Thk) * cos(Trn * u * 2 * pi) },
 function { 1 * u },
 function { (1/2 - v * Thk) * sin(Trn * u * 2 * pi) }
 <0,0>, <1,1>
 contained_by { box {<-1/2,0,-1/2,>, <1/2,1,1/2,>} }
 max_gradient 1/1000
 accuracy 1/1000
 precompute 20 x,y,z
 scale <Wid,Hgh,Wid,>
}

I was wondering if there were a quicker alternative that I hadn't thought of?

Thanks!

-Mike


Post a reply to this message

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