|
|
In article <3cbb4472@news.povray.org>, Warp <war### [at] tagpovrayorg>
wrote:
> Sebastian H. <seb### [at] webde> wrote:
> > (Beside I wrote this little macro just yesterday for myself and had
> > somwhere in mind that there exists a vstr () function which takes soooo
> > many args :-).)
>
> You can use vstr() in your macro.
And the strings.inc include file has several shortcut macros, including
versions that take only one argument, the vector to be converted.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|
|
|
> I'd be grateful if someone could post an example of how to center an
object.
Use the Center_Object() macro in "shapes.inc"
The syntax is: Center_Object(object_to_center, axis_to_center_on)
Axis can be combined, if you want to center the object at y and z axis, use
y+z .
#include "shapes.inc"
#declare Object = text{ttf "arial.ttf" "Look! I'm centered!!" 0.5,0 pigment
{rgb 1}}
Center_Object(Object,x+y+z)
This should do the trick..
--
_.-=^=-._.-=[ Peter ]=-._.-=^=-._
_.-=[ http://hertel.no/peter ]=-._
Post a reply to this message
|
|