POV-Ray : Newsgroups : povray.newusers : Help - very difficult when it should be easy : Re: Help - very difficult when it should be easy Server Time
19 Apr 2024 09:06:26 EDT (-0400)
  Re: Help - very difficult when it should be easy  
From: Trevor G Quayle
Date: 16 Nov 2016 17:00:01
Message: <web.582cd625ba97f5c181c811d20@news.povray.org>
"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.

Yes, it looks like that will happen when both numbers in the atan2 function are
0.  If only one is 0, it is fine.  A simple check on the StrutLength and bypass
when it is 0 should suffice.

-tgq


Post a reply to this message

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