Giter VIP home page Giter VIP logo

Comments (3)

plimkilde avatar plimkilde commented on June 12, 2024

Qhull is an easy option, being used behind the scenes in the Delaunay and griddata functions in SciPy. Used in this way, it can triangulate 1 million random points in about 10 seconds.

Another interesting option could be porting the delaunator JavaScript library (ISC-licensed), which can apparently triangulate 1 million points in about 2 seconds. (Not to be confused with the Delaunator python library.)

The very fastest library I've heard of is fqDel (paper, slides), though no source seems available. The authors report being able to triangulate 1 million points in 0.2 seconds, a 4x speed improvement over Triangle.

from dhmqc.

kbevers avatar kbevers commented on June 12, 2024

We have experimented with Qhull before. At the time it wasn't as robust as Triangle and also slower. Things might have changed since, but I don't think so.

Another thing to this issue is that it would be preferable to use an existing Python module, so we limit the amount of code we have to maintain and also avoid compiling binaries as part of the installation Just a thing to keep in mind.

from dhmqc.

plimkilde avatar plimkilde commented on June 12, 2024

I have investigated a bit more. The Geogram C++ library seems very suitable for our purposes:

  • Small, standalone Delaunay module with no mandatory dependencies outside standard library
  • BSD (3-clause) license
  • Fast and robust (I have successfully triangulated 100M random points in ~3 CPU minutes), time seems to scale roughly linearly with number of points

We'll just need to generate Python bindings for it.

CGAL (under GPLv3) can also handle at least 75M points (tested on an Ubuntu machine), but it is a fairly heavy library using lots of C++ templates, and does not seem to be anywhere as fast as Geogram without a bit of optimization.

Qhull is indeed not as fast, and complains when fed more than 16.7M input points.

from dhmqc.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.