POV-Ray : Newsgroups : povray.general : Disc which is not flat : Re: Disc which is not flat Server Time
7 Aug 2024 09:23:51 EDT (-0400)
  Re: Disc which is not flat  
From: Warp
Date: 3 Dec 2001 15:07:16
Message: <3c0bdb74@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: A good point - the obvious solution, from a user's point of view, would be that
: scale <0,0,2> would generate an error (not a warning), but scale z*2 wouldn't,
: it would just silently expand to <1,1,2> - however, from a programmer's p.o.v.
: (sic) I can see that this might be impossible if the expansion to a full vector
: is done before the vector operation itself...

  I have the feeling that the promotion is done as an independent and
completely separated step, before the 'rotate' code even sees it. Thus it
would be very difficult to distinguish between the two.
  And besides, should this generate the warning/error or not:

#declare Scale = y*2;
scale Scale

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