POV-Ray : Newsgroups : povray.newusers : delare a matrix ? : delare a matrix ? Server Time
29 Jul 2024 18:19:32 EDT (-0400)
  delare a matrix ?  
From: James Buddenhagen
Date: 15 May 2005 19:14:28
Message: <4287d7d4@news.povray.org>
I have a matrix which doesn't change.  I need 
to apply it to several objects.  Right now I 
type out the matrix after each object, and this 
works.

But it would be easier if I could do something 
like:

#declare M = matrix <...numbers...>

and then:

MyObject M

(or maybe:   MyObject matrix {M} )

Anyway, I can't get this to work, but there must 
be an easier way than retypeing all 12 matrix entries 
each time I need to use it.

Obviously, I pretty new to POV.  Any pointers to 
how to do this better would be appreciated.
--
Jim Buddenhagen  jbuddenh at gmail dot com


Post a reply to this message

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