|
|
Warp <war### [at] tagpovrayorg> wrote:
> Chambers <ben### [at] pacificwebguycom> wrote:
> > Instead of
>
> > #declare myobj = object {
>
> > Why not use
>
> > object myobj {
>
> The intention is to redesign the SDL for pov4 anyways. What we need is
> a good overall design rather than just individual bits.
>
> --
> - Warp
I'd like to see more powerful scripting support as well. I use Python
frequently to generate POV-ray code.
An a syntax change:
Instead of
#declare count = 10
#declare pos = 0
#declare MyObject = union {
#while(pos < count)
circle {
<0, 0, 5>, 0.5
rotate <0, pos * 360 / count, 0>
texture {
pigment {
#if(pos % 2 == 0)
color White
#else
color Black
#end
}
}
}
#declare pos = pos + 1
#end
}
Why not simply have:
count = 10
MyObject = union {
for(pos = 0, pos < count, pos = pos + 1) {
circle {
<0, 0, 5>, 0.5
rotate <0, pos * 360 / count, 0>
texture {
pigment {
if(pos % 2 == 0) {
color White
} else {
color Black
}
}
}
}
}
}
MyMacro = macro(p1, p2, p3) {
/* Macro body */
}
MyMacro(x, y, z)
Post a reply to this message
|
|