"Bald Eagle" <cre### [at] netscapenet> wrote:
> That looks good when I run your code - when I let it rip on a big array of
> triangular coordinates, I get a "Domain error in atan2()"
>
> I'll study your code and try to track down the cause. Probably
> degenerate/coincident points or something.
Actually you'd also have to check the second instance as well:
#declare RotY = degrees(atan2(Vec.z,Vec.x));
and ensure that z & x aren't the same. If they are, then the box is vertical
and doesn't need rotation about y.
-tgq
Post a reply to this message
|