|
 |
> 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
|
 |