POV-Ray : Newsgroups : povray.general : Disc which is not flat : Re: Disc which is not flat Server Time
7 Aug 2024 09:24:25 EDT (-0400)
  Re: Disc which is not flat  
From: Warp
Date: 30 Nov 2001 17:46:50
Message: <3c080c5a@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: Actually, it's equivalent to scale <0,.1,0> (except that we change it to 
: <1,.1,1> and print a warning) and is in fact exactly what Warp is talking 
: about: he thinks the warning should be an error instead.  Or at least it 
: appears so to me; perhaps he would like to clarify.

  Exactly. As scaling by zero is illegal, then an error should be issued,
as with all illegal values.
  Think about this:

camera { look_at 0 }

  Having the camera location and look_at in the same point is illegal, and
thus an error is issued. POV-Ray doesn't (and shouldn't!) assume that
"oh, the user just mistyped this number, I'll convert it to 'look_at z' for
him".

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

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