From: Peter Vanroose <peter_vanroose@ya...> - 2010-12-28 15:55:57
I believe I've fixed the bug in vgl_algo for conic intersection which you reported a few weeks ago. At least, the test which I added a while back is now passing.
Please let me know whether this fix (which I just checked into SVN) works for you.
> From: patrickpol@...
> To: peter_vanroose
> Subj: vgl_algo bug
> Date: 29 november 2010 23:40
> I recently ported some of your library to actionscript,
> and I came across a possible bug.
> In class vgl_homg_operators_2d, method
> intersection(vgl_conic<T> const&, vgl_conic<T> const&)
> fails when two intersections have the same y-coordinate.
> The eigenvalue solution will return with two identical
> roots, and do_intersect function will calculate the same
> values for x and w (incorrect values in this special case
> as far as I can tell), rather than the two unique solutions.
> I solved this issue by detecting this special case and
> intersecting either of the conics with a vertical line.
Get latest updates about Open Source Projects, Conferences and News.