POV-Ray : Newsgroups : povray.newusers : Rollercoaster type maths (not possible in povray?) : Re: Rollercoaster type maths (not possible in povray?) Server Time
29 Jul 2024 04:30:08 EDT (-0400)
  Re: Rollercoaster type maths (not possible in povray?)  
From: Trevor G Quayle
Date: 1 Aug 2006 18:06:44
Message: <44cfd074$1@news.povray.org>
> Thanks for the example, i've not looked into macros, they look a bit like
> function statements, but i dont understand the example i'm afraid. It 
> looks
> like A is the position of the first object and b, is how much the next 
> moves
> from it, i get the rotation, but how is the user supposed to know the
> correct movement between the track pieces if there are hundreds of 
> objects?

Macros are slightly different than function statements.  Basically anything 
that is inside the macro is essentially replaced inline with the code in 
place of the macro call at parse time.  They make doing repetitive things a 
lot easier.

If you posted some code that you tried to do (cleaned up of course) someone 
could probably see what you are doing wrong or what assumptions you are 
mistaken on and lead you in the right direction.

-tgq


Post a reply to this message

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