POV-Ray : Newsgroups : povray.general : text around a circle : Re: text around a circle Server Time
8 Aug 2024 14:21:57 EDT (-0400)
  Re: text around a circle  
From: Chris Huff
Date: 12 Dec 2000 16:18:11
Message: <chrishuff-6062C9.16190612122000@news.povray.org>
In article <3a36886a@news.povray.org>, "Shay" <sen### [at] hotmailcom> 
wrote:

> Any tip for adding text around the perimeter of a circle with the text on
> the bottom as well as the text on the top being upright?
> 
> Since the letters are lined up at the axis with the lower left corner 
> of the letter, translating and then rotating the text leaves the text 
> on the bottom closer to the axis than that on the top.

You do it letter-by-letter, translating and rotating as needed. For 
instance, for letters on a circle of R radius in the xy plane, for the 
letters on top, you would translate by y*R then rotate by z*letterAngle. 
For letters on the bottom, you would translate by y*(R+letterHeight) and 
then do the usual rotate.
This is easiest with MegaPOV, where you could use the min_extent() and 
max_extent() functions to get the size of each letter, in the current 
official version, you would have to position each letter manually, a big 
pain even with fixed-width fonts.
It wouldn't be hard to make a macro to do this in MegaPOV, though. (I 
think Ron Parker wrote a macro to do something similar, you could 
probably modify it to do what you want. You could probably find it in 
one of the scene file groups.)

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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