POV-Ray : Newsgroups : povray.newusers : "Grouping" Server Time
31 Oct 2024 21:29:27 EDT (-0400)
  "Grouping" (Message 1 to 7 of 7)  
From: Simon
Subject: "Grouping"
Date: 5 May 2007 17:10:02
Message: <463cf2aa@news.povray.org>
Hello again all,

While in the process of trying to make things act together, i'm trying to 
"group" 20 spheres so I can rotate/translate them with one command. What 
sort of syntax am I looking at for this?

I've had a look at the documentation for #declare and object but they don't 
seem to be what I'm after.

Any help, as always, greatly appreciated


Post a reply to this message

From: Christian Froeschlin
Subject: Re: "Grouping"
Date: 5 May 2007 17:11:21
Message: <463cf2f9$1@news.povray.org>
Simon wrote:

> While in the process of trying to make things act together, i'm trying to 
> "group" 20 spheres so I can rotate/translate them with one command. What 
> sort of syntax am I looking at for this?

Try "union"


Post a reply to this message

From: Simon
Subject: Re: "Grouping"
Date: 5 May 2007 18:02:53
Message: <463cff0d@news.povray.org>
Thanks for that!


Post a reply to this message

From: nemesis
Subject: Re: "Grouping"
Date: 5 May 2007 18:35:01
Message: <web.463d05b447d6c750c2ebdd9f0@news.povray.org>
easy to miss such an important thing hidden deep into the huge manual, huh?
;)


Post a reply to this message

From: Simon
Subject: Re: "Grouping"
Date: 6 May 2007 05:50:07
Message: <463da4cf$1@news.povray.org>
True,

The problem is, I'm still trying to think in programming terms ie objects 
and instances which seems great in theory (and should help me in future) - 
the only problem is, I'm not 100% with getting my head around things like 
while loops inside definitions

I'm fairly sure once I get the hang of this it should be a lot easier than 
I'm making it.

I'm currently working on a cube of spheres that rotates/explodes/etc.... and 
is loopable. I'll post it in alt.binaries when I've finished my pshere on a 
checkered plain.

"nemesis" <nam### [at] gmailcom> wrote in message 
news:web.463d05b447d6c750c2ebdd9f0@news.povray.org...
> easy to miss such an important thing hidden deep into the huge manual, 
> huh?
> ;)
>
>
>


Post a reply to this message

From: Christian Froeschlin
Subject: Re: "Grouping"
Date: 6 May 2007 08:34:18
Message: <463dcb4a$1@news.povray.org>
Simon wrote:

> the only problem is, I'm not 100% with getting my head around things like 
> while loops inside definitions

Think of it as a preprocessing step which just performs textual
replacements in your source code. Not sure how it is actually
implemented, but the resulting behavior seems to be like that.


Post a reply to this message

From: Simon
Subject: Re: "Grouping"
Date: 6 May 2007 10:20:41
Message: <463de439@news.povray.org>
Yep - that's the way i went, As I come form a webby backround, it's like 
server-side / client-side :)

> Think of it as a preprocessing step which just performs textual
> replacements in your source code. Not sure how it is actually
> implemented, but the resulting behavior seems to be like that.


Post a reply to this message

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