POV-Ray : Newsgroups : povray.windows : how to group objects together as one object? Server Time
9 Dec 2024 07:13:45 EST (-0500)
  how to group objects together as one object? (Message 1 to 3 of 3)  
From: Marina
Subject: how to group objects together as one object?
Date: 29 Jun 2011 12:15:01
Message: <web.4e0b4f35153c7167ccc9e96e0@news.povray.org>
I'm aware of the #declare function but it's not working for me.
I have a set of mirrors and beams (cylinders) that I need to move as one big
object so I don't have to deal with the complications of moving every single of
the 20 pieces by themselves.

How exactly do I do this? I just learned the program a couple of days ago.
Thanks!


Post a reply to this message

From: Alain
Subject: Re: how to group objects together as one object?
Date: 29 Jun 2011 13:28:45
Message: <4e0b60cd@news.povray.org>

> I'm aware of the #declare function but it's not working for me.
> I have a set of mirrors and beams (cylinders) that I need to move as one big
> object so I don't have to deal with the complications of moving every single of
> the 20 pieces by themselves.
>
> How exactly do I do this? I just learned the program a couple of days ago.
> Thanks!
>
>

union{...}

It's base porpose is exactly what you want: Give the possibility to 
manipulate several objects as if they where just one.
Just add "union{" before those 20 objects, then put a "}" after the last 
(you may want to leave 1 or 2 blank lines here).

You can now place some rotate, scale and translate between the last 
object and the "}" and those thansformations will affect all your 
objects as one.

If you add some texture to the union AFTER the last object, it will be 
applyed to any object that don't already have one.
If this texture is applyed before the transforms, the transforms will 
affect it: It will move, rotate and scale with the whole union.



Alain


Post a reply to this message

From: Marina
Subject: Re: how to group objects together as one object?
Date: 29 Jun 2011 17:30:01
Message: <web.4e0b98d0638f2e2ee088a3220@news.povray.org>
Perfect! Thank you very much :)


Post a reply to this message

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