POV-Ray : Newsgroups : povray.newusers : wrapping text around a cylinder : Re: wrapping text around a cylinder Server Time
30 Jul 2024 16:17:37 EDT (-0400)
  Re: wrapping text around a cylinder  
From: Hughes, B 
Date: 14 Jan 2004 05:59:53
Message: <40052129$1@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cja### [at] netplexaussieorg...
> In article <40047fa1$1@news.povray.org>,
>  "Hughes, B." <omn### [at] charternet> wrote:
>
> > A macro already exists in the 3.5 includes for doing something almost
like
> > that. I've modified Ron Parker's script to place text onto a cylinder
> > surface, a very minor change of adding a 10th parameter called L (for
Label)
> > which just rotates the font character in a direction to lay the correct
way.
>
> It rotates it by a given angle around the tangent to the circle? Or it's
> a boolean flag to rotate by 90 degrees? The former would be a lot more
> useful, and little or no extra work.

Both, actually. :-)

It starts out rotated on the x axis by 90 degrees (-90 when inverted form,
for inside surface perspectives) if specifying +1. The range from -1 to +1
would turn it from -90 to +90 degrees, to allow for applying it to a cone
for example, and zero is same as original circle text would be without this.

I went with my idea of simplicity while lacking in usability, so it could
certainly be done a better way than that. Which is a very good idea you
mention to do it with user-specified degree angles (0 still being no change
from original macro).

Changing the macro name hadn't occured to me since it does what the original
did, still circling, so seems to fit.

Bob H.


Post a reply to this message

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