POV-Ray : Newsgroups : povray.advanced-users : Macro Problem : Re: Macro Problem Server Time
29 Jul 2024 22:32:58 EDT (-0400)
  Re: Macro Problem  
From: David Wilkinson
Date: 2 Oct 2000 07:54:03
Message: <ndogtsk8snr5qe302h6qre7da958p056dj@4ax.com>
On Mon, 2 Oct 2000 11:19:24 +0200, "David Vincent-Jones" <geo### [at] galaxynetcom>
wrote:

>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 would do it by using arrays of vectors. If you do it this way you can let the
macro decide how many points you have in the prism.
I have posted an example in p.b.s-f

----------------------
dav### [at] hamiltonitecom
http://hamiltonite.com/


Post a reply to this message

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