POV-Ray : Newsgroups : povray.beta-test : bug with declaration of array Server Time
30 Jul 2024 16:21:41 EDT (-0400)
  bug with declaration of array (Message 1 to 2 of 2)  
From:
Subject: bug with declaration of array
Date: 26 Oct 2001 09:35:22
Message: <scpitt851apfq5r6qtsoi1vpupt77g829s@4ax.com>
platform: POV35b6 on PII233 128 MB with NT4 SP6

second branch of my previous thread is not connected with first one.
Now I found below line/scene is properly parsed:

#local A=array;

but documentation says it needs [INT] after array keyword

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)|_((x+y)*.7,z,.1)|_((x+y+2)*.7,z,.1)|_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Ron Parker
Subject: Re: bug with declaration of array
Date: 27 Oct 2001 00:05:00
Message: <slrn9tkcjd.l0.ron.parker@fwi.com>

> platform: POV35b6 on PII233 128 MB with NT4 SP6
> 
> second branch of my previous thread is not connected with first one.
> Now I found below line/scene is properly parsed:
> 
> #local A=array;
> 
> but documentation says it needs [INT] after array keyword

Yep, that's a degenerate case.  Looks easy enough to fix though.  I
would suggest not trying to use the resulting array, since it has a 
negative dimension and a zero size.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

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