Skip to content

Commit

Permalink
Additional Refactor Voronoi
Browse files Browse the repository at this point in the history
.. updated to have a more Qt/C++ friendly interface:

    Voronoi *test = new Voronoi();
    test->addSite(QPointF(2,5));
    test->addSite(QPointF(3,2));
    test->addSite(QPointF(6,4));
    test->run(QRectF());
    delete test;

    the output is still written to standard out as a
    series of points, lines, vertexes and edges. This
    was to enable validation against the original
    c program.

.. whilst the original functionality is now embedded a
   further update will need to convert the output into
   a vector of lines to draw.

   will do this as part of adding it to a plot as an
   annotation.
  • Loading branch information
liversedge committed Sep 30, 2021
1 parent d56d52c commit 5502d87
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 139 deletions.

0 comments on commit 5502d87

Please sign in to comment.