POV-Ray : Newsgroups : povray.newusers : Using a conditional in a function : Using a conditional in a function Server Time: 4 Jul 2008 23:02:21 GMT
  Using a conditional in a function  
From: Archpawn
Date: 28 Dec 2007 23:50:01
I made a function that can end up dividing by zero. When a macro divides by
zero, it just generates a warning and moves on. Functions, however, generate
errors, so on the off chance that the divisor is exactly zero, you can't render
the scene. I've tried using both (A?B:C) and select(A,B,C) to make it avoid
division by zero, but both generate an error when used in a function. Is there
any way to use a conditional in a function?


Post a reply to this message

Copyright 1991-2004 POV-Team™