|
|
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
|
|