POV-Ray : Newsgroups : povray.general : Equiation needed : Re: Equiation needed Server Time
12 Aug 2024 19:31:03 EDT (-0400)
  Re: Equiation needed  
From: Anton Sherwood
Date: 12 May 2001 22:52:20
Message: <3AFDF71A.4C55D22D@pobox.com>
Peter Popov wrote:
> Can anyone suggest an equation that gives the distance to a unit
> circle lying in the x-z plane? It should look like an wood pattern
> whose axis is not +z but a circle. Any ideas?

well, off the top of my head,
	s = sqrt(x*x+z*z)-1
	dist = sqrt(y*y+s*s)

-- 
Anton Sherwood  --  br0### [at] p0b0xcom  --  http://ogre.nu/


Post a reply to this message

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