|
|
"Arie L. Stavchansky" wrote:
> When I rotate a pov ray object like a the box, POVRay will rotate it about
> it's center point. However, if I make a prism, it rotates the prism around
> the first point created. How can I make a prism object and if I apply the
> rotate parameter have it rotate around the center of the prism object?
>
> Anybody know a work around for this? Thanks,
If you're using 3.5, include the transforms.inc file and then use the
Center_Trans macro to center your object (actually its bounding box so it may
not look like you want it to look) around the origin.
#include "transforms.inc"
#declare MyPrism=prism{...}
object {MyPrism
Center_Trans(MyPrism, x+y+z)
}
G.
--
**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery
Post a reply to this message
|
|