Sat Jan 17 14:10:40 2015pg [...] futureware.at - Ticket created
Subject:
Triangulation problems
Date:
Sat, 17 Jan 2015 20:10:13 +0100
To:
bug-Math-Geometry-Planar [...] rt.cpan.org
From:
"Philipp Gühring" <pg [...] futureware.at>
Hi,
There is a division by zero error in _get_angle, which can be solved by adding
return 0 if(_Length($v0) == 0 || _Length($v1) == 0);
directly before the if.
The triangulation itself runs into an endless loop and into memory
problems when consecutive points are on the same coordinates. I solved
that problem by pre-filtering my input.
Best regards,
Philipp