POV-Ray : Newsgroups : povray.advanced-users : Macro Problem : Macro Problem Server Time
29 Jul 2024 22:31:10 EDT (-0400)
  Macro Problem  
From: David Vincent-Jones
Date: 2 Oct 2000 05:21:29
Message: <39d85399@news.povray.org>
Can somebody tell me how to get the following concept to work...

macro ShapeMacro(Nums,Data)
       prism{ linear_sweep linear_spline 0,70,Nums,Data texture
{pigment{color Red}}}
       #end
# object {ShapeMacro (4),(<2107,1480>,<2105,1481>,<2104,1480>,<2107,1480> )}

The problem occurs in trying to split the number of sides and the data
coordinates.
Is there a way around this ?

I have a very long list of objects that will be generated by an outside
source and need to use a macro format rather than building each element
separately.

Thanks

David


Post a reply to this message

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