POV-Ray : Newsgroups : povray.programming : idea:toroidal pattern : idea:toroidal pattern Server Time
28 Jul 2024 20:19:54 EDT (-0400)
  idea:toroidal pattern  
From: PoD
Date: 6 Jul 1999 18:37:23
Message: <37828538.23928F6F@merlin.net.au>
I was just thinking that it should not be too difficult to implement a
toroidal pattern type in POV.

This pattern would return the distance of a point from a unit circle in
the x,z plane (minor radius can be done with a colour/density etc map).

I think that it could be done by
1. rotate point so that it's on the x,y plane
2. let p = <abs(p.x)-1,p.y>
3. find distance of p from origin
but someone with better 3D math skills could probably come up with a
better way.

Anyone think this is a good/bad/stupid/useful idea?

Cheers, PoD.


Post a reply to this message

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