In article <3f69e6b0@news.povray.org>,
"Kevin Becker" <ksb### [at] NOSPAMyahoocom> wrote:
> I've created a pool ball in POV using a sphere & cylinder and using the
> difference & intersection commands to make my Ball "wrapper" and Ball
> "core." See below for sample code. How can I easily create a second ball
> that's blue without copying the current code and making adjustments
> accordingly? I know how to create a second ball and move it around, but I
> want to be able to change the color of the wrapper. Also each ball will
> have a number and I would like to be able to change that easliy.
You've already been told about macros, but you might also look at the
object pattern. There's no need to use anything more than a sphere for a
pool ball.
--
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/
Post a reply to this message
|