|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann <chr### [at] gmxde>
wrote:
> just add commas in the vectors
???
#local C=< 1 2 3 >;
works fine with 3.5
is it different with 3.1 ?
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann <chr### [at] gmxde>
>wrote:
>> just add commas in the vectors
>
>???
>
>#local C=< 1 2 3 >;
>
>works fine with 3.5
>is it different with 3.1 ?
It's not 3.1 that's the problem, it's 1.0.
In 1.0 you could have points like <1 -1 1>. Because it didn't have the
ability to evaluate the expression "1 -1", it was quite happy with there
being three values. In versions 2.0 and later "1 -1" is evaluated,
giving 0 as the result and now <1 -1 1> only has two co-ordinates.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sat, 08 Dec 2001 19:12:06 +0100, Christoph Hormann
<chr### [at] gmxde> wrote:
>
>BTW, converting syntax to 3.1 is not that difficult either, just add
>commas in the vectors, replace 'composite' with 'union' and change the
>texture syntax.
>
One could write a .pov script to read in the
old .pov file and do the replacements automatically.
Pete
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Pet### [at] nymaliasnetalmost wrote:
: One could write a .pov script to read in the
: old .pov file and do the replacements automatically.
File reading in povray is not that versatile.
You can read only povray elements (floats, vectors, strings, objects...),
nothing else.
--
#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
|
|
| |
| |
|
|
|
|
| |
|
|