POV-Ray : Newsgroups : povray.general : Disc which is not flat : Re: Disc which is not flat Server Time
20 Nov 2024 00:30:07 EST (-0500)
  Re: Disc which is not flat  
From: Warp
Date: 30 Nov 2001 08:41:05
Message: <3c078c70@news.povray.org>
Slime <noo### [at] hotmailcom> wrote:
: y*.1 is equivalent to <0,.1,0>. You can't scale an object by zero in any
: direction - it's like squishing it to zero thickness, and there are
: mathematical reasons why the concept doesn't work (it relates to division by
: zero).

  The exact reason is that POV-Ray doesn't actually transform the object at
all, but it instead transforms the ray with the inverse transformation when
the ray-object intersection is tested.
  The inverse transformation of scale <0, .1, 0> is scale <1/0, 1/.1, 1/0>.

-- 
#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.