POV-Ray : Newsgroups : povray.newusers : problem with the "odd" function Server Time
25 Nov 2024 15:46:18 EST (-0500)
  problem with the "odd" function (Message 1 to 2 of 2)  
From: Render Now ?
Subject: problem with the "odd" function
Date: 15 Jun 2005 02:05:01
Message: <web.42afc4d760ac3ee09a83aba10@news.povray.org>
Hi,

I seem to have a problem with the "odd" function.

here is the code of the test page


________________________________
 #declare Which=odd(0);
 #if (Which)
   box { 0, 1 }
 #else
   sphere { 0, 1 }
 #end
_________________________________


   and the parser says

File Context (5 lines):
 #declare Which=odd
Parse Error: Cannot assign uninitialized identifier.
Total Scene Processing Times
  Parse Time:    0 hours  0 minutes  0 seconds (0 seconds)
  Photon Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Render Time:   0 hours  0 minutes  0 seconds (0 seconds)
  Total Time:    0 hours  0 minutes  0 seconds (0 seconds)
CPU time used: kernel 0.06 seconds, user 0.00 seconds, total 0.06 seconds

POV-Ray finished


Suggestions anyone?


Post a reply to this message

From: Render Now ?
Subject: Re: problem with the "odd" function
Date: 15 Jun 2005 02:20:01
Message: <web.42afc818ed380ce9a83aba10@news.povray.org>
Ahem,

A little searching pointed out that things
will go well if i include the "math.inc".

And it did, please disregard my newbie question.


Post a reply to this message

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