|
|
"Kima" <nomail@nomail> wrote:
> It is probably a ridiculous question, but imagine we have created a union as
POV-Ray has a somewhat steep learning curve, so these things aren't really
ridiculous.
> #declare obj_u1 =
> union {
> obj1
> obj2
> }
>
> how can we create clones of obj_u1 and apply different transformations?
> For example, how can we transform three independent copies of obj_u1 as
>
> translate obj_u1
> scale obj_u1
> rotate obj_u1
What you want to do is use the
object {} "directive" or whatever this type of SDL command is properly called.
So, assuming you've declared values for x1, y1, and z1, you could use the
following structures:
object {obj_u1 translate <x1, y1, z1>}
object {obj_u1 translate x*10}
object {obj_u1 scale <x1, y1, z1>}
object {obj_u1 scale 3}
object {obj_u1 rotate <x1, y1, z1>}
object {obj_u1 rotate y*degrees}
Post a reply to this message
|
|