POV-Ray : Newsgroups : povray.general : Spirals with rectangular cross section : Re: Spirals with rectangular cross section Server Time
5 Aug 2024 16:09:52 EDT (-0400)
  Re: Spirals with rectangular cross section  
From: Shay
Date: 22 Aug 2002 09:43:46
Message: <3d64ea92@news.povray.org>
James Taylor <jim### [at] blueyondercouk> wrote in message
news:3d64d01d@news.povray.org...

> Whats the easiest way of making a spiral which follows the surface of a
> cylinder.

You could code this in a few minutes by placing mesh vertices with loops. It
would be even easier to make a macro which builds the object pointing
straight up in the y direction and then rotating the spiral into the
orientation you desire. Easier yet would be to code the square spiral as a
union of four different meshes. This is inelegant, but would make adding
textures and normals simpler.

Instead of rotating a square to form your spiral, consider rotating a
spline. This would allow for many different and interesting shapes of
spirals. A four point linear spline would also easily produce the square
spiral you mentioned. The uv mapping would be straight forward, so you could
twist your textures as well.

 -Shay


Post a reply to this message

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