|
![](/i/fill.gif) |
Can anyone remind me what vnormalize(<0,0,0>) used to return under
previous betas?
I'm trying to get some code (actually Ingo's "param.inc" macro) to work
the same under RC2 as it did before vnormalize(<0,0,0>) became an error.
The docs say "A/vlength(A)", so I tried replacing
#declare Norm=vnormalize(vcross(A,B));
with
#declare Norm = vcross(A,B)/vlength(vcross(A,B));
V3.1 returned <0,0,0>. so I tried
#if (vlength(vcross(A,B))=0)
#declare Norm=<0,0,0>;
#else
#declare Norm=vnormalize(vcross(A,B));
#end
but neither of these produce images that look quite the same as in
previous betas.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
![](/i/fill.gif) |