POV-Ray : Newsgroups : povray.newusers : Access to height field data : Re: Access to height field data Server Time
28 Jul 2024 20:23:10 EDT (-0400)
  Re: Access to height field data  
From: William Tracy
Date: 19 Oct 2008 13:28:47
Message: <48fb6e4f@news.povray.org>
Alain wrote:
>> I prefer to simply use:
> #if(vlength(Norm))
> ...
> #end
> 
> Any non-zero value evaluate as true.

I find that slightly less readable; making the not-equal-zero explicit 
makes it clearer what you are trying to do.

If I wrote code like that on the job, my boss would be unhappy. ;-)

> No need for the empty #else.

I concur there.

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

segfault_message = g_strdup(
     "Hi, user.  We need to talk.\n"
     "I think something's gone wrong here.  It's probably my fault.\n"
     "No, really, it's not you... it's me... no no no, I think we get 
along well\n"
     "it's just that.... well, I want to see other people.  I... what?!? 
  NO!  I \n"
     "haven't been cheating on you!!  How many times do you want me to 
tell you?!  And\n"
     "for the last time, it's just a rash!\n"
);
     -- from the Pidgin source code


Post a reply to this message

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