POV-Ray : Newsgroups : povray.general : stacking formula : Re: stacking formula Server Time
4 Feb 2023 01:47:21 EST (-0500)
  Re: stacking formula  
From: Bald Eagle
Date: 1 Jan 2023 09:40:00
Message: <web.63b19b0254dbdfbe1f9dae3025979125@news.povray.org>
> So lets say the height of the object is .803, The object is called Floor, and I
> want to stack 66 of them. Could you reshow the code with the inputs I gave, I'm
> trying to understand this


#declare Height = 0.803;

> > #for (Level, 0, 65)
> >      object {Floor translate y*Level*Height}
> > #end

Notice that you _could have done the loop from 1 to 66, but 0 to 65 allows you
to leave the first Floor object untranslated, since 0*Height = 0.


Post a reply to this message

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