POV-Ray : Newsgroups : povray.general : How do I construct an object pointer? : Re: How do I construct an object pointer? Server Time
19 Nov 2024 18:27:02 EST (-0500)
  Re: How do I construct an object pointer?  
From: Tom Melly
Date: 21 Jan 2002 08:44:09
Message: <3c4c1b29$1@news.povray.org>
"Tom Melly" <tom### [at] tomandlucouk> wrote in message
news:3c4c16e3$1@news.povray.org...
> If I have 2 objects, MyMesh1 and MyMesh2,

<snip>

S'allright - figured it out (well, switched to array)

So:

#local TreeArray = array[2]
#local TreeArray[0] = object{MyMesh1}
#local TreeArray[1] = object{MyMesh2}
#local ThisTree = int(rand(Rand1) + 0.5);
object{TreeArray[ThisTree]}


Post a reply to this message

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